LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

How do you stop the lag.

Root / Programming Questions / [.]

SamCreated:
My contest entry works fine on n3ds but it lags and flickers a lot on o3ds and I don't know why. Help!!1

If you want I could test it for you and see whats the problem if you don't have an old 3ds to test on

step 1: git gud step 2: key please pleeeeease!!

O3DS is slower than N3DS. ... which addresses the 'why', but not 'how to fix'. How to fix is to do less computations. A quick fix might be to double all your movement values and use VSYNC 2 rather than VSYNC.

Calculations rarely have any performance impact. The problem is most likely graphics commands like GPAINT

Calculations rarely have any performance impact. The problem is most likely graphics commands like GPAINT
That's not entirely true. Doing a LOT of floating point math is actually pretty slow, even on modern PCs (but less so.) That's why a lot of computation-heavy software uses caching etc. to save on computations.

My recommendations are: -use integer variables where you can (probably won't have a huge impact, but it's worth a try) -avoid slow graphics commands whenever possible (use sprites or BG for moving objects instead of graphics)