Scite (Scintilla) slow drawing/rendering issues

Questions about Wine on Linux
Post Reply
tomaskir
Newbie
Newbie
Posts: 4
Joined: Tue Jul 02, 2019 4:38 pm

Scite (Scintilla) slow drawing/rendering issues

Post by tomaskir » Tue Jul 02, 2019 4:45 pm

Greetings,

I am attempting to run AutoIt3 Editor (called Scite - based on Scintilla) under Wine.
Everything installs and run, however I am having issues with super slow window drawing.

For example, when scrolling in a file, you can see the text editor window being drawn from top to bottom about every 2 seconds.
This makes it unusable.

There is a ton of messages (hundreds) like this in stdout:

Code: Select all

0009:fixme:d2d:d2d_device_context_Flush iface 0x14008a0, tag1 (nil), tag2 (nil) stub!
0009:fixme:d2d:d2d_device_context_Flush iface 0x690a88, tag1 (nil), tag2 (nil) stub!
0009:fixme:d2d:d2d_device_context_Flush iface 0x81bd60, tag1 (nil), tag2 (nil) stub!
0009:fixme:d2d:d2d_device_context_Flush iface 0x690a88, tag1 (nil), tag2 (nil) stub!
OS: Manjaro 18.0.4 (Arch)
Kernel: 4.19.49-1
Wine version: wine-4.9 (Staging)

jkfloris
Level 6
Level 6
Posts: 664
Joined: Thu Aug 14, 2014 10:10 am

Re: Scite (Scintilla) slow drawing/rendering issues

Post by jkfloris » Wed Jul 03, 2019 4:38 am

I don't know if there are any downsides, but you could disable "d2d".

Code: Select all

WINEDLLOVERRIDES="d2d1=d" wine SciTE.exe

User avatar
Bob Wya
Level 12
Level 12
Posts: 2768
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Scite (Scintilla) slow drawing/rendering issues

Post by Bob Wya » Wed Jul 03, 2019 6:35 am

@tomaskir

Also there is a native Linux version of scite (excuse the reference to an Arch AUR package)...
Which works just fine for me! 8)

Bob

tomaskir
Newbie
Newbie
Posts: 4
Joined: Tue Jul 02, 2019 4:38 pm

Re: Scite (Scintilla) slow drawing/rendering issues

Post by tomaskir » Wed Jul 03, 2019 6:57 am

Bob Wya wrote: Also there is a native Linux version of scite (excuse the reference to an Arch AUR package)...
Which works just fine for me! 8)

Bob
Thanks for the suggestion, but what I need to run is specifically Scite4AutoIt:
https://www.autoitscript.com/site/autoi ... downloads/

So vanilla Scite is not enough, since it doesn't have all the AutoIt extensions / addons.

tomaskir
Newbie
Newbie
Posts: 4
Joined: Tue Jul 02, 2019 4:38 pm

Re: Scite (Scintilla) slow drawing/rendering issues

Post by tomaskir » Wed Jul 03, 2019 9:30 am

jkfloris wrote:I don't know if there are any downsides, but you could disable "d2d".

Code: Select all

WINEDLLOVERRIDES="d2d1=d" wine SciTE.exe
That worked wonders, thank you!
Scite now works smooth and all the drawing delays are gone.

tomaskir
Newbie
Newbie
Posts: 4
Joined: Tue Jul 02, 2019 4:38 pm

Re: Scite (Scintilla) slow drawing/rendering issues

Post by tomaskir » Thu Jul 04, 2019 6:26 am

So while the drawing/rendering issue is fixed, I found another.

Actually working in Scite, it misses (or doesn't receive) some keystrokes.
You can type a sentence, and 2 or 3 letters will be missing from it.

It seems the Scite window is losing focus for a split second, and not getting keystrokes sent to it while it loses focus.
I can see this because I have inactive windows at 80% opacity in XfWm, and the Scite Window "blinks" every now and then.

It restores focus automatically tho, but it seems during this focus loss/regain, a keystroke is not delivered to it, and that causes the missed characters when typing.
I might be wrong on the focus loss, but the end result is that some characters are not delivered to Scite when typing.

Any idea how to fix this?

User avatar
Bob Wya
Level 12
Level 12
Posts: 2768
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Scite (Scintilla) slow drawing/rendering issues

Post by Bob Wya » Sat Jul 06, 2019 1:31 pm

@tomaskir

You might benefit more from setting:

Code: Select all

technology=0
in SciTEGlobal.properties in a 32-bit WINEPREFIX, set to Windows XP compatibility.
Those are the settings I've used in my autoit WINEPREFIX, with reasonable success.

See: SciTE Documentation.

Bob

Post Reply