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.
type TestData
Value1 as float
value2 as float
value3 as float
value4 as float
value5 as float
value6 as float
value7 as float
value8 as float
value9 as float
endtype
Set Display Mode 800,600,32,0
sync on
backdrop on
global DIM TestName(1) as TestData
value=-1
TestCount=1000
do
if controlkey()=1
array insert at bottom TestName(),TestCount
inc value,TestCount
value2=value
for t=0 to value2
array delete element TestName(),value
dec value
next t
endif
if shiftkey()=1
for t=0 to TestCount
array insert at bottom TestName()
inc value
next t
value2=value
for t=0 to value2
array delete element TestName(),value
dec value
next t
endif
text 50,50,str$(screen fps())+" "+str$(value)
sync
loop