-
Notifications
You must be signed in to change notification settings - Fork 17
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
take_new_title
and debug_run
question
#62
Comments
If the user sets a new window title, we store it in the
That definitely shouldn't be the case, and it may be a bug. IIRC the games should run at 30fps. Are you compiling in release mode ( |
Ah ok so it has to exist for
This isn't related to I see you're doing a similar thing for |
I just tested my project on Linux and same happens there. I don't think it's something I did because all I'm doing to increase fps is change |
I finished my game and the problem still occurs when using It was quite nice to use rust instead of lua and have a 400 kb wasm build btw, so thanks for that :D. Although I couldn't really figure out how to use functions to manipulate the values of the game struct so it turned into a big mess at the end. Was able to finish it regardless though without bugs I think. I figured out how to do it now though. |
Repro made in seperate branch https://github.com/lesleyrs/runty8-game-template/tree/fps-error, it only applies to draw() not update(). |
Ah-ha! That's the thing I was missing, I'd been checking fps for I'll take a look to see what's causing this. Thanks! |
What is the
take_new_title
function supposed to be used for? It returns the title name but I'm unsure how or why to use it.Besides that I saw that
debug_run
/run_editor
is running at higher fps thanrun
, that could lead to some problems with timings not being the expected speed when later changing the setting since you can't immediately tell what fps your game is running at. I noticed this when playing a frames based animation but I couldn't really tell when running the example games for some reason? Although I appreciate having this setting available. 👍The text was updated successfully, but these errors were encountered: