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

Load unique geometries #43

Open
NoxFly opened this issue May 2, 2024 · 0 comments
Open

Load unique geometries #43

NoxFly opened this issue May 2, 2024 · 0 comments
Labels
core This feature is part of the core of the engine development Feature to develop

Comments

@NoxFly
Copy link
Owner

NoxFly commented May 2, 2024

For now, each Actor loads its own geometry. This is great, but if multiple actors have the same geometry, it becomes heavy to load, while we could load it once and share it to newer actors that need it.

Issue :
This is easy to resolve for predefined simple shape classes like Cube, Sphere etc... if we store the geometry in a map with the key being the name of the geometry.

  • What about custom object files loaded from file from end users ?
    • How to recognize it has already been requested to load from this file before ?
    • If 2 different files have the same content ?
    • And if we ask to load from direct buffer ?
@NoxFly NoxFly added development Feature to develop core This feature is part of the core of the engine labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core This feature is part of the core of the engine development Feature to develop
Projects
None yet
Development

No branches or pull requests

1 participant