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

Reduce frame time spikes #30

Closed
kurtd5105 opened this issue Dec 28, 2015 · 0 comments
Closed

Reduce frame time spikes #30

kurtd5105 opened this issue Dec 28, 2015 · 0 comments

Comments

@kurtd5105
Copy link
Owner

Currently enemies are spawned as needed, but this causes a spike in frame time. Instead enemies should be spawned on load, and then start moving into view normally as they would if they were dynamically created.

SDL_GetTicks() is used to count the frames, but it returns only ms when a more precise amount of time is needed.

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

No branches or pull requests

1 participant