Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphics/gpu-simple is very slow #3

Open
Acelya-9028 opened this issue Oct 15, 2020 · 2 comments
Open

graphics/gpu-simple is very slow #3

Acelya-9028 opened this issue Oct 15, 2020 · 2 comments

Comments

@Acelya-9028
Copy link

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.

@SpeckyYT
Copy link

Same issue over here

@SpeckyYT
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants