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

Only render dirty part of the scene #21

Open
GMartigny opened this issue Jun 19, 2018 · 2 comments
Open

Only render dirty part of the scene #21

GMartigny opened this issue Jun 19, 2018 · 2 comments
Labels
✨ enhancement New feature or request 🔧 technical Change on technical aspect of the project

Comments

@GMartigny
Copy link
Member

GMartigny commented Jun 19, 2018

It could be a huge performance boost to only render part of the scene that need to be redrawn.
The scene could be split into an arbitrary number of parts (3x3 ...) and component should "dirty" the part their into.
Alternatively, component can return informations on their bounding box (AABB). Then scene only redraw the union of all AABB. (see below comment)

@GMartigny GMartigny added ✨ enhancement New feature or request 🔧 technical Change on technical aspect of the project labels Jun 19, 2018
@GMartigny
Copy link
Member Author

I implemented a bounding box solution and performances actually got worse. With 1000 component packed in the same area (bounding box relevant) fps drop from ~20 to ~10.

I think, looping through children and computing the box is more expensive than predicted.

@GMartigny
Copy link
Member Author

This issue would be deprecated by #80.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request 🔧 technical Change on technical aspect of the project
Projects
None yet
Development

No branches or pull requests

1 participant