mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
409b620217
* Updated #2208 This commit solves the problem of freezing when going fullscreen for MacOS. It was caused because winit may behave unexpectedly when using run_return. Winit crate generally discourages the use of that (see: <https://docs.rs/winit/latest/winit/platform/run_return/trait.EventLoopExtRunReturn.html#tymethod.run_return>). NOTE. This commit only solves the problem for `interactive_fractal` binary, but not the `multi_window_game_of_life` binary. * Some display servers (like X.org) are not redrawing for every frame. * Fixed the same bug for example binary. * Remove ControlFlow::Poll (it is the default anyway) in interactive_fractal Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com> * Remove ControlFlow::Poll (it is the default anyway) in multi_window_game_of_life Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com> --------- Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
readme.md | ||
run_all.sh |
Examples
The examples shown here will not necessarily work for the latest stable release of Vulkano. By default, Github shows the most recent unstable revision, rather than the last stable release. You can switch Github to show the examples for stable releases as follows.
Selecting the version tag:
1. Find the branch/tag selection box and click it. | |
2. Select click on the tags tab. | |
3. Click on the desired version. | |
4. After selecting it should look like this. |
Running the examples:
cargo run --bin <example>
Example:
cargo run --bin triangle
If you want to compare performances with other libraries, you should pass the --release
flag as
well. Rust is pretty slow in debug mode.