Warning messages lagging game
Every frame i am getting hundreds of messages of :
Internal: deleting an allocation that is older than its permitted lifetime of 4 frames (age = 7)
and Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak.
This even happens in my starting scene with nothing but a few UI buttons and a canvas. Lower in the message it says:
"0x000002D9A69738F3 (Mono JIT Code) [EntityCommandBuffer.cs:419] Unity.Entities.EntityCommandBufferData:DestroyConcurrentAccess ()
0x000002D9A1C92D4B (Mono JIT Code) [EntityCommandBuffer.cs:1041] Unity.Entities.EntityCommandBuffer:Dispose ()"
Logging the string to console takes 1ms each and it does this at least 7 times a frame. It cuts my FPS in half when this is going on. Usually my lobby scene is at 1k fps but with this it goes down to 300-400
Is there a way to prevent this problem with the Entities package or a way to stop it from logging these things so it doesn't lag my game
I suggest eyeing for mentions of your own code anywhere near those messages. If there are none to be found then I suggest changing package version from which this is most likely co$$anonymous$$g from.
Changing entities version in package manager does not solve the issue. I have also tried other editor versions as well. Some of my code makes use of the buffer, however in my title scene, none of these systems run.