A simple vsync tester.
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
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)
by default the program will reqest vsync with present_vsync()
.
this can be disabled with -n
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