opendesigndev / open-design-engine

The Open Design Engine (ODE) renders designs and provides interface to edit them and query specific information about them and their components
Apache License 2.0
4 stars 5 forks source link

Hardware blending #3

Open Chlumsky-Ceros opened 1 year ago

Chlumsky-Ceros commented 1 year ago

Optimize most blending and other compositing operations so that a new framebuffer is not required, and instead elements are blended into the existing destination. However, some major problems must be solved first:

This is currently the most important optimization as currently the number of shaded pixels is extremely high due to all compositing re-creating each image in at least the resolution of destination, which is often a large background layer.

I would like to also add a shaded pixel counter to compare its value before and after optimization.

Finally, ODE currently assumes that GL_BLEND is disabled (and only enabled temporarily for a few operations). Instead, after this, it can be left in any state and has to be set for each render operation.