Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Array operations not fast enough

Author
Message
Brightside_
11
Years of Service
User Offline
Joined: 27th Oct 2013
Location:
Posted: 21st Oct 2019 18:17
So, I've find that "array insert element" and "array delete element" can create some kind fo FPS drop when you try to update to many elements.
For example if you have big arrays for drawing lines or text sprites or any other data, which have to be changed quickly you get FPS drops while updating this stuff.
Am I doing it wrong?
I've attach project file to test it.

Attachments

Login to view attachments
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 23rd Oct 2019 13:40 Edited at: 30th Mar 2022 03:49
Ya, the performance hit is really significant. Why the need to delete the array elements? Why not just make an array big enough to hold it all and just manipulate the data?



So many games to code.....so little time.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-14 16:46:24
Your offset time is: 2024-11-14 16:46:24