• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM How to increace draw_line() performance?

R

Roscoe.Zhao

Guest
Hi,
I'm making an interactive grided background:

it runs smoothly for about 10 seconds, then fps start to drop,

the debug overlay shows the draw event is taking quite long time,
in the draw event, draw_line() is called about 2100 times per frame, I wonder how can I increase the performance?
(I'm using YYC compiler)
Also, I curious why everytime I run it, the first 10~15 secs is always very smooth ,fps_real can upto 300~500, but then fps start to drop dramaticlly?
 
R

Roscoe.Zhao

Guest
Looks to me like something that might be better performed using shaders?
I actually tried create a shader to make similar effect, but image 'wiggles' a lot, probably due to the supported texture's limited floating point percision.


Also, although I'm not tried yet, I've been told shaders don't work well on androids, is that true?
 
Top