PDA

View Full Version : Drawing Mask with LOS is not smooth



kevininrussia
August 28th, 2020, 21:42
Windows with GeForce 1060 graphics 6GB ram

When I draw a mask the line following the curser will follow the curser, then it stops for a half second, then snaps to the new mouse pointer position and will smoothly follow the pointer, then stop again for half a second and snap to new pointer location making a circle into a polygon. This happens more often the slower I move the mouse. Is it looking at LOS as the mask is being drawn? Maybe do what ever calculations its doing after mouse button release? It seems like its pausing the draw while it thinks about something every second or so. I want the mask line to follow the mouse pointer and not stop during the draw.

When Dynamic Lighting is added this wont be such a big deal but until then I have been drawing a lot of masks and its a pain having to go back and fill in areas during game because the mask draw hung and didnt fill in the section I wanted with the mask.

https://i.imgur.com/ORAVzrt.png

VegaFontana
October 6th, 2020, 12:55
I experience the same issue when drawing anything :
- Mask
- Walls for LOS
- Painting tool
- Eraser

It happens less with the drawings but can be pretty annoying when trying to do circuler shapes.
I own a tablet that I use for drawing maps and had to stop making them with FGU because of these "lag spikes" :(

Here is an example of a circular move and the result:
https://i.imgur.com/Yy3ryl2.png

Zeradam
October 7th, 2020, 10:47
Yep, I think this is happening with everyone; the program isn't optimised yet which I believe is the cause.
I just stop and start from the last point and try to anticipate the spikes.

VegaFontana
October 7th, 2020, 11:07
Yes indeed, I just hope it's just not too much tied to the core of this version.

I remember they made a massive performance update a few weeks ago that fixed most of my issues with lag and libraries.
But I feel like this issue did not benefit from it.

Zeradam
October 7th, 2020, 11:16
I'm willing to bet it's an auto save feature.
I'm changing the way I use the line tool from click and hold to click point to point; it's slower but it's also much more accurate and the spike often happens as I'm lining up the next point.

Zacchaeus
October 7th, 2020, 12:31
I'm not seeing any issues like this. Revealing mask areas is smooth via freehand or rectangle; adding Los there are no hitches or anything like that.

A couple of things: Adding LoS is not meant to be done via click and hold. It's meant to be done by click point to point. FG saves every 5 minutes so unless every time you do this FG just happens also to be saving this isn't the cause of your issue.

kevininrussia
October 7th, 2020, 17:54
I'm not seeing any issues like this. Revealing mask areas is smooth via freehand or rectangle

We’re you making a mask with LOS on? Rectangle of course is smooth because it’s drawn on mouse click. Freehand the mask is being updated during the draw and causes the issue as shown by others. I get this issue 100% of the time. I have never been able to draw a smooth freehand mask.

Zacchaeus
October 7th, 2020, 18:37
We’re you making a mask with LOS on? Rectangle of course is smooth because it’s drawn on mouse click. Freehand the mask is being updated during the draw and causes the issue as shown by others. I get this issue 100% of the time. I have never been able to draw a smooth freehand mask.

Yes. https://youtu.be/K0M_5UkTqVI

kevininrussia
October 7th, 2020, 19:05
In the video you are not getting a line where your mouse was. There are times when the lines are jumping to the mouse pointer making a strait line. If you draw half that speed you will notice it more.

Zacchaeus
October 7th, 2020, 19:14
I'm still not seeing anything which is detracting in any way from what I'm trying to do. https://youtu.be/cReEIWjpLNo

kevininrussia
October 7th, 2020, 19:22
Me making a circle. The issue is big when I am trying to trace something like the diameter of a light source.

https://i.imgur.com/ORAVzrt.png

Zacchaeus
October 7th, 2020, 19:33
I do see a 'stutter' every now and then as you say but I can't replicate the result in your image. I've tested on various maps - some big, some small and I cannot get the same result. Whilst the line seems to do a little jump now and again as it seems to catch up with the mouse pointer it always draws what I'm drawing. I've also tried moving the mouse at different speeds as well but again that doesn't seem to make any difference.

Now I have my mouse set to a very high speed and it is a very precise mouse which operates at thousands of dpi etc. I wonder if that might be making things easier for me or not?

kevininrussia
October 7th, 2020, 19:42
The image I posted is an extreme case. It's to illustrate there is some calculation happening during the draw. This is causing a pause, stopping the line segment drawing then after what ever calculation its doing it looks to where the mouse pointer is and draws another line segment. The devs need to fix that pause calculation.

webdove
November 25th, 2020, 20:27
Hi, I am having this same problem in game. Here is an OBS video of drawing and erasing with lots of pauses. I set the priority of FGU to high with the task manager and there is nothing else of significance running besides FGU and OBS.

https://youtu.be/3Zk0RDsyR7E

Moon Wizard
November 25th, 2020, 22:43
In order to have an idea of what is going on, we would need a copy of the campaign folder you were using (zipped up and posted on file share such as DropBox or Google), as well as a screenshot to show what windows were open and what modes you were in. Also, information on your computer (OS, specs) would be useful. You can send that information to [email protected].

Remember, the more walls, tokens, FX, etc. that you have on the map will affect performance. Reducing the number of objects on a map will improve performance.

Regards,
JPG

rocketvaultgames
March 19th, 2021, 02:29
Hello,

I'm having the same issue, but I think it might run deeper than just when drawing LOS. FGU simply seems to freeze for maybe 0.2 seconds every 7 seconds or so. Often this is unnoticeable, but if you are drawing LOS, or moving a token (sometimes causing the cursor to become a ghost of the token, rarely creating a duplicate token on the map), or have FX layers on a map, it is very noticeable (and obnoxious). This occurs even with just a single map open that is just a small file with a single layer, a single token, no FX, and no LOS drawn or enabled.

It happens with zero extensions as well as with a ton of extensions loaded.

It happens on my main machine (Windows 10, i7-9700K 8-core 3.6 GHz, 64GB DD4 2666, RTX 2080 Super Overclocked 8GB GDDR6, 400mbps down/ 35mbps up), as well as my laptop (high end, discrete video card (it's using the card)).

Task Manager doesn't show anything close to taxed. Nothing spikes when the short freezes happen. All other open applications are unaffected.

If no maps are open, this doesn't seem to happen.

Is it autosaving the database perhaps? I assumed that happened on the order of minutes, not seconds.


Thank you,

Matt

Moon Wizard
March 19th, 2021, 03:04
The auto-saving occurs every 5 minutes; so that's most likely not what you are seeing.

We are aware of some garbage collection that can occur every few seconds; and we did track down a few memory leaks in the image handling that are included in the v4.1 beta release already.

Regards,
JPG