My old loop for my server used to have all my functions followed by a "sync" for every loop. This didn't seem very necessary in my mind so what I did is change to this:
do
HandleMessages()
HandleSoftCorrections()
HandleLeft()
inc syncnum, 1
if timer() - synctimer > 1000
if net connected() <> 1 : print "SERVER FAILED, LOST CONNECTION!" : print "SERVER FAILED, LOST CONNECTION!" : print "SERVER FAILED, LOST CONNECTION!" : print "SERVER FAILED, LOST CONNECTION!" : wait key : end : endif
HandleUI()
sync
synctimer = timer()
endif
loop
By changing my FPS to LPS my LPS changed from 2500 LPS to a crazy 522000 LPS. Is this valid? Or am I just slow and needed to do this a long time ago xD
Ventures of the worlds around us are only limited by imagination.