Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/10maurycy10/vsync
A simple vsync test (rust sdl2)
https://github.com/10maurycy10/vsync
Last synced: 11 days ago
JSON representation
A simple vsync test (rust sdl2)
- Host: GitHub
- URL: https://github.com/10maurycy10/vsync
- Owner: 10maurycy10
- License: unlicense
- Created: 2021-09-27T21:19:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-28T00:27:19.000Z (over 3 years ago)
- Last Synced: 2024-11-20T21:58:48.101Z (2 months ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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