You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove object is explicitly calling the lua collectgarbage calls is causing slowdowns when changing scenes. This is especially true with scene of many objects such as lists of 300 items. If you remove these calls an call this function less frequently, it massively increases app performance. I am not sure but lua may be doing the memory management anyway so these calls should not be needed at all.
The text was updated successfully, but these errors were encountered:
Hi,
that was an old call due to the old automatic texture deallocation during objects remove().
Since now texture deallocation can be performed only by calling RNGraphicsManager:deallocateGfx() , I think that force to garbage collection in remove() has became useless.
I was already checking this earlier in the morning and I added this fix to my high priority todo list.
Many others collectgarbage() calls has to be removed/checked in the framework and I have to test and stress RapaNui in order to do so. I'll fix this asap.
Thanks for the issue!
I've fixed this, I've removed the most of collectgarbage() calls.
RapaNui now collects garbage using Moai and C and only if objects have to be deallocated.
Now everything will work smoother and faster, I tested it ;D.
Have a nice day!
Mattia
(I'll close this issue later, when everything will be on master branch ;D)
Remove object is explicitly calling the lua collectgarbage calls is causing slowdowns when changing scenes. This is especially true with scene of many objects such as lists of 300 items. If you remove these calls an call this function less frequently, it massively increases app performance. I am not sure but lua may be doing the memory management anyway so these calls should not be needed at all.
The text was updated successfully, but these errors were encountered: