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

OnUpdate has too much code in it. #4

Open
KevinTyrrell opened this issue Dec 29, 2017 · 0 comments
Open

OnUpdate has too much code in it. #4

KevinTyrrell opened this issue Dec 29, 2017 · 0 comments

Comments

@KevinTyrrell
Copy link

OnUpdate should be reworked. It has nearly 150 lines of code being ran every frame. This is a CPU hog. Stuff like isShiftDown can be gathered from event handlers and doesn't need to be updated every frame. You're spreading yourself too thin with all of this inside of one function call.

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