A bit of context: I am working on lightmap generation for a custom run-time level editor, that is supposed to update in real time (in the background obviosly, with reasonable delay, but I’d like it to be more or less responsive) and currently facing a problem of uv packing taking too long.
So I was wondering, would it be ok to just store lightmap for every object as a single texture without packing them together in my “editor”? They would be combined eventually during a compilation step but before that, should having, say 10,000 boxes (not visible all at once) with unique light textures (64x64 - 128x128 pixels each) be a concern?
I understand that it’s better to test things like this instead of asking on forums, so that’s what I did first: I spawned 10,000 cubes, each with a unique run-time generated 64x64 texture of a random color, and put them in a long line so frustrum culling doesn’t let me render them all at once. Doesn’t seem to impact fps at all, the whole spawning operation takes only 3 seconds.
I assume this means I’m all set, but GPU stuff is not exactly the area I would consider myself fluent in, so I’m not sure if I’m testing the right things. Can there be any problems on different hardwire, should I worry about how GPU memory handles this in the long run, or I am just stressing too much about this?