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

Known CPU usage spikes #450

Open
3 tasks
NQNStudios opened this issue Sep 21, 2024 · 2 comments
Open
3 tasks

Known CPU usage spikes #450

NQNStudios opened this issue Sep 21, 2024 · 2 comments
Labels
bug game Affects the game, as opposed to the editors

Comments

@NQNStudios
Copy link
Collaborator

I'm consolidating all excessive CPU usage problems into a single issue with a checklist. I'll be closing the other CPU-related issues, and if they reference specific measurable CPU spikes, I'll copy that content into this one.

  • multiline text-input fields cause CPU to spike because they are calculating word wrapping every frame. Fixing this will involve repurposing the fix for word-wrapping here which for some reason wasn't directly applicable to field.cpp without a headache.
  • Walking on lava spikes CPU
  • The start of outdoor combat spikes CPU (because the map is being generated)
@CelticMinstrel
Copy link
Member

I'm also going to note that replacing text-input fields with something from TGUI might be an option, maybe.

@NQNStudios
Copy link
Collaborator Author

NQNStudios commented Sep 21, 2024

Another thing we could do to help low-powered computers run it, is make the frame-rate reducible. This is easy in the code, we just need to add it to the preferences window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug game Affects the game, as opposed to the editors
Projects
None yet
Development

No branches or pull requests

2 participants