Progressive GPU Lightmapper works for 1k lightmap size, but falls back to CPU when baking 2k or 4k lightmaps?
Unity 2019.1.2f1 Running on a NVIDIA GeForce 1050 Ti graphics card.
Hi, I'm working on baking some lightmaps for a medium to large scene to run in VR.
Currently I have the scene baked but it is using 25 baked lightmaps, each one 1024x1024
I am trying to reduce draw calls and would like to pack these lightmaps into several 4k atlas, however when I attempt to bake any lightmap size greater than 1024, I am met with a "OpenCL Error. Falling back to CPU lightmapper." error and Unity begins attempting to bake with the CPU with an estimated time of over 24 hours (i5 CPU).
Does anyone have any solutions to prevent this error, or, a way to take my existing lightmaps and pack them together into several 4k atlas textures?
Link to my lightmapper settings: https://imgur.com/yr9HHjH
The full error in the console is as follows: "OpenCL Error. Falling back to CPU lightmapper. Error callback from context: CL_$$anonymous$$E$$anonymous$$OBJECT_ALLOCATION_FAILURE error executing CL_CO$$anonymous$$$$anonymous$$AND_NDRANGE$$anonymous$$ERNEL on GeForce GTX 1050 Ti (Device 0)."
Again, this does not occur for 1k lightmaps. only for 2k and 4k.
Answer by Excelerator · Sep 13, 2020 at 08:56 PM
I'm having the same problem with a 2080 super in 19.4.10f1. I don't think there's anything you can do until they fix it. Submit a bug report.
Answer by slaczky · Sep 26, 2020 at 03:01 PM
I have the same problem with any lightmap size. GPU: 2080 Super CPU: Intel i9-9900K Unity version: 2019.4.8f1