#Slow Update for brush/pencil

1 messages · Page 1 of 1 (latest)

thick spoke
#

So, my problem is that im making a whiteboard project thing, however a big annoyance i've found is that for when i'd draw faster, gaps would appear due to the mouse.Move event just being too slow. I've added a video showcasing my problem along with the relevant scripts

#

How it works is that it detects mouse movement at the MouseDetect localscript and send a Bindable message to the server script every time the mouse.Move event triggers.

#

It will later be processed on the server script depending on the tool used
In this case the tools relevant are brush and pencil

Brush creates a circle at the spot the mouse is on, simple as that, does so rapidly because the event is firing rapidly as i move the mouse

Pencil creates a line from the first point to a second point. So a line is created with the data of 2 triggers, being oldpos and newpos. After every line the newpos is set to oldpos and awaits the next trigger for newpos to repeat the process.

Pencil was my effort trying to fix this (while also keeping brush since they look completely different. However both tools still have this problem, albeit being alot more prominent on Brush.)