I'm trying to make a whiteboard for my drawing game.
I've finished making it but the game gets so laggy if I draw for 3 seconds or so. The Whiteboard works like so:
Every time the user is on the board and is holding their mouse down, a Frame named point spawns at their mouse location. This makes it so there are a lot of frames on the screen and makes the game really laggy. Is there another way to make a whiteboard that isn't laggy?
#Whiteboard
12 messages · Page 1 of 1 (latest)
Please try to help me :)
again saying because people skip this :(
the only thing I can initially think of is make everything larger, so that you need less frames to achieve the same result.
The lag is caused by many copies being created in a short amount of time, so the less copies the better.
That being said if there is something that has a method or modifiable property that works much better than creating frame copies, I haven't found it yet.
there is a size meter which the user can choose from. I've kind of solved the lag issue, but now theres another problem where the points are too far from each other, so it doesnt look like you're drawing but just drawing squares every couple of milliseconds, is there a way to fix that to?
lower the time between points being made, so each point gets made sooner
honestly, not really. if you're using renderStepped it should be more than close enough to not have gaps
ive thought of that but then there are popular games that make it smooth
** You are now Level 4! **
maybe ill ask their team or smthing