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

New font system and more #4

Open
paeryn opened this issue Feb 8, 2016 · 0 comments
Open

New font system and more #4

paeryn opened this issue Feb 8, 2016 · 0 comments
Assignees

Comments

@paeryn
Copy link
Owner

paeryn commented Feb 8, 2016

The new font system is running, you can now load fonts easily at runtime. More changes to come to fix some niggles. See client/chars.c to see how to use it.

The old shape drawing method (Circle(), Rect() etc.) causes random gpu stalls of several seconds (or more) under the new system. It would happen before under certain cercumstances (if you drew enough per frame I think), now it happens sooner. To fix this I've added routines to allow easy allocating of shape objects, you basically try and allocate shapes before your drawing loop, and then in the loop you ask it to draw what you'd allocated.
Documentation is coming soon, but see client/ptest.c to see how to use it.

@paeryn paeryn self-assigned this Feb 8, 2016
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