Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 912 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 912 Bytes

vsync

A simple vsync tester.

how it works

this program alternates frames several colors that should combine into gray. see https://en.wikipedia.org/wiki/Persistence_of_vision and https://en.wikipedia.org/wiki/Additive_color

cycle size

the cycle size can be specifyed with the -f option:

    cargo run -- -f 3

2 frame : alternates #FF0000 and #00FFFF this should result in a gray window. (more relable, default)

3 frame: alternates #FF0000, #00FF00 ,and #00FFFF this should result in a gray window. (double frame drops)

reqest vsync

by default the program will reqest vsync with present_vsync().

this can be disabled with -n

results

colorfull stripes: your system is horibly misconfigured (have you passed -n) solid gray: pass, you have vsync solid gray, with color flashes: fail or you have, you have frame drops