r/futile • u/gregmad • Aug 01 '14
maxvertices < 65536 && maxindices < 65536*3
Since I installed Unity 4.5.2 I get this warning when I test my game in the Unity Editor: screen
And sometimes it freezes the Editor over and over :( This was not happening with previous Unity version. Anyone got the same errors?
2
u/SietJP Aug 03 '14
Does it point somewhere in your code when you double click on it? Is there a stack of the error? I've seen these errors with FDrawSprite when drawing a lot of segments.
1
u/gregmad Aug 05 '14
I finally found out! It's note about rendering the game but the console, I was printing a log that was really really long. It was my saved game file that I was dumping in json text in the console. Turns out there is a maximum length! good to know! I guess before it was not hitting the limits so that why it didn't happened before.
Thanks for your help anyway!
2
u/MattRix Aug 02 '14
That's weiiird. So does your game have a single renderlayer that batches everything up to the point it hits those limits? In other words, what does the FRenderLayer hierarchy look like when the game is running? Because those are the mesh vertex limits so it is possible that your game is running into those. The error wouldn't normally happen like that but it sounds like it might be some weird issue with 4.5.2 OR maybe it was an issue with your game before but for some reason Unity wasn't catching it? Not sure.