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

Simple performance improvement ideas #157

Open
ensisoft opened this issue May 8, 2023 · 0 comments
Open

Simple performance improvement ideas #157

ensisoft opened this issue May 8, 2023 · 0 comments

Comments

@ensisoft
Copy link
Owner

ensisoft commented May 8, 2023

  • Use a different container for entities that are interested in input events. So instead of having to iterate over all entities simply iterate over some "input enabled entities"
  • Maybe squash Lua BeginLoop/EndLoop and Update functionality into a single function and loop over the entities once.
  • Dispatch game and physics events in a bulk virtual call (i.e. reduce virtual function calls)
  • Remove OpenAL error checking code (likely very unoptimized in Emscripten)
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

1 participant