timer = Millisecs() While Not KeyDown(1) if Millisecs() - timer >=100 then UpdateParticles() timer = Millisecs() end if Wend