Flat light and back face cull worker mode


Add support for per face lighting and back face culling in worker mode. For larger models, this can offload a lot of calculations to another thread. Typical systems have 4-8 cores / threads to distribute work to.

Worker back face culling is a new property per object. Only works in worker mode (it would probably be a net loss if done on main thread.) This will potentially help some with GPU performance, when lighting is enabled.

Files

3DObject-2-49-1.c3addon 109 kB
Jun 08, 2023

Get Construct 3 3DObject Plugin - SDK V1 only

Download NowName your own price

Comments

Log in with itch.io to leave a comment.

Deleted 70 days ago
(1 edit)

Thanks for the feedback - I'll take a look at making update light / baking work in worker mode.

For the cube, if you also have Worker Back Face Cull enabled, that requires the vertices of the 3D Model to be ordered consistently and properly (CW / CCW). It may be the case that they are not organized that way in your model. You could try an import and export of blender to see if that helps fix the ordering.

Deleted 70 days ago

great, you are welcome 

Performance improve is always good