Skip to content

10maurycy10/vsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple vsync test (rust sdl2)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages