pencil2d / pencil

Pencil2D is an easy, intuitive tool to make 2D hand-drawn animations. Pencil2D is open source and cross-platform.
http://pencil2d.org
GNU General Public License v2.0
1.45k stars 272 forks source link

Using shift modifier+stylus to change brush size can cause lag and crash #1694

Closed Fyttyn closed 6 months ago

Fyttyn commented 2 years ago

Issue Summary

When i use the shift modifier and my stylus to modify the brush size, the program lags. Especially when the size becomes large. It's also finnicky. Like holding shift and simply tapping somewhere can cause the size to jump to 1 or 200, usually dependent on the stylus movement hovering over the screen before the tap. If i try changing the size using stylus by dragging on somewhere outside the canvas (when i just want to draw on infinite canvas like Milton (another painting program) does), it doesn't work. If I hold shift modifier and just scribble my stylus, it can cause enough lag to crash the program. (An option for max brush size limit would be nice.)

### Actual Results Causes lag and/or crash. ### Expected Results Should be smooth. In most other programs I've tried (Milton, Krita), changing the size dynamically with stylus doesn't lag. ### Video or Image Reference ### Steps to reproduce Hold shift and drag the stylus to modify brush size. ### System Information + Pencil2D Version: 0.6.6 + Operating System: Windows 10 Pro + RAM Size: 4GB + Graphics Tablet: Surface Pro
Jose-Moreno commented 2 years ago

@Fyttyn I apologize your report somehow slipped through and only now I see it. First off let me just say that Qucik Sizing is an experimental feature, so it's expected to have issues (that's why it's turned off by default).

That said the problem you speak of is real, I can confirm. Basically the canvas is divided by an invisible line, so when using the quick sizing command you either go from the current size to 1, if you do it to the left side of the canvas, or from current value to the max (200 ) if you do it on the right side.

The lag / crash issue can be explained by your having a low amount of RAM, considering right now it's not an optimized feature. I've even experienced lag with 16 Gigabytes so I can only imagine how it must be for you.

Thank you for reporting these problems since we didn't have an open issue for this. Hopefully there can be an improved feature for changing the brush size in the near future.