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

lack of framerate?... need to think of a workaround #27

Closed
traviskirton opened this issue Mar 29, 2012 · 1 comment
Closed

lack of framerate?... need to think of a workaround #27

traviskirton opened this issue Mar 29, 2012 · 1 comment

Comments

@traviskirton
Copy link
Collaborator

there is no framerate in C4iOS... on purpose.
the intention is to update things only when they need to be updated, and to let the system handle a lot of the animation implicitly.
this raises issues, though, because a lot of ideology (especially in creative coding languages) relies on the concept of a framerate and things being updated 30fps or whatever...
this impacts any kind of Vector class... because particle / physics / vector systems necessarily need some kind of update function.
also, the technique for rendering a lot of these systems uses a frame-based drawing technique (e.g. draw circle at X,Y now) and doesn't think about using some kind of implicit animations...
i am not sure how to get around this kind of thing, or if it needs to be got around at all...

@traviskirton
Copy link
Collaborator Author

I added timers to the framework, they should be used to create constantly updated scenarios. For instance, when adam asked me how to do a particular aesthetic where a shape changed points every frame, I added a timer to trigger animations between new shapes.

This should be fine for other things as well, including vector-based systems.

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