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

model.h & mesh.h merged to one file and optimized! #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

model.h & mesh.h merged to one file and optimized! #41

wants to merge 1 commit into from

Conversation

VagueLobster
Copy link

I have updated the model.h file to also have the code from mesh.h and it
is very fast this way... i have found that in my game engine i can
easily load a sphere containing over 500.000 tris / polys and still run
the engine fluently :) i have been able to add more and more of these
spheres so now it is satisfying. i have been able to add up to 30 of these spheres depending on what shader i use :)

I have updated the model.h file to also have the code from mesh.h and it
is very fast this way... i have found that in my game engine i can
easily load a sphere containing over 500.000 tris / polys and still run
the engine fluently :) i have been able to add more and more of these
spheres so now it is satisfying.
@JoeyDeVries
Copy link
Owner

I appreciate the effort, but I'd rather keep them seperate for learning purposes, efficiency is not my main concern with regards to the tutorials (I'm also not sure whether you've seen such a performance boost as you talk about run-time performance, while the model.h and mesh.h are only relevant for the first time a model loads).

I plan to re-work the model/mesh tutorials soon anyways, with a much more streamlined mesh interface. I'll keep the pull request open for people who are interested :)

@VagueLobster
Copy link
Author

Yeah i actually thought it would probably not be the best solution for opengl beginners but i first thought of it after i had made the pull request :) but thanks for keeping it up ;-) i do appreciate it :)

@JoeyDeVries
Copy link
Owner

Not at all! Thank you! :)

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

Successfully merging this pull request may close these issues.

2 participants