examples
examples copied to clipboard
graphics/gpu-simple is very slow
Hello,
I actually use your XorTroll/aarch64-switch-rs
demo as base for a joy homebrew and it works very well.
Today, I retried the examples/graphics/gpu-simple
demo before migrate my code to this more recent version of the library and the fps is very slow.
I tried this simple loop and I have ~4 fps.
let mut index = 0;
loop {
surface.start()?;
surface.clear(Black.into());
surface.draw_font_text(&font, index.to_string(), White.into(), 25.0, 10, 10, true);
index += 1;
surface.end()?;
}
I have updated my toolchain to the latest nightly to support const_fn_fn_ptr_basics
feature.
With the old demo in XorTroll/aarch64-switch-rs
and the same code, I have 30 fps.
I can't compile the old demo with the latest nightly so I use an old nightly (2020-08-20) and it works very well.
Have you an idea?
Furthermore, the binary size is ~550kb for the old demo and ~1.50mb now. It's normal?
Thank you very much for your help.
Same issue over here
Nevermind, I compiled it in debug mode and it gives around 4fps, but now I compiled it in release and now it runs at around 60fps.