-
Notifications
You must be signed in to change notification settings - Fork 40
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
BlElement buffer-able #267
Comments
Yes and it will be costless to move a texture drawn by the BlElement than drawing each time each child... |
There is beInSingleCompositionLayer that flags a BlElement as buffered. I did an experiment with the SDL_Texture, but also would improve with a cache at the level of Cairo. e.g. do cache the cairo_surface_t or group instead of redrawing as now. |
Yes it is a good idea, and more : if dirty, the BlElement must have to refresh the buffer (or a mechanism that allows it)... it is not the idea to have a non updatable BlElement... |
Hi, this is a proposal for this request: #268 |
This is fixed by #268 Basically, when an element has to draw itself on a canvas and responds true to It's quite basic for the moment: if a There are two strategies for doing it:
Note: Element effect's have |
It could be very usefull to have an inner property of BlElement to be able to bufferize it, or a Trait which enable a BlElement to do so...
When you draw a complex BlElement with multiple BlElement transformed as children, and when children are not updating all the time... the developper should be able so specify a "buffered" BlElement to render only the buffer (when not dirty) and not recompute all child when just moving it.
The text was updated successfully, but these errors were encountered: