dail8859 / LuaScript

Notepad++ plugin for Lua scripting capabilities
https://dail8859.github.io/LuaScript/
GNU General Public License v2.0
109 stars 23 forks source link

NP++ Dedicated GPU memory spiking because of this plugin #86

Closed teebu closed 4 years ago

teebu commented 4 years ago

Talking about this here: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8352

image

dail8859 commented 4 years ago

What do you have in your startup script?

teebu commented 4 years ago
-- Startup script
-- Changes will take effect once Notepad++ is restarted

editor1.Technology = SC_TECHNOLOGY_DIRECTWRITE
editor2.Technology = SC_TECHNOLOGY_DIRECTWRITE
dail8859 commented 4 years ago

Have you tried removing those?

Is there a simple way to reproduce this issue?

teebu commented 4 years ago

Commenting out those calls seem to resolve the issue.

dail8859 commented 4 years ago

Then it isnt a problem with this plugin. All that does is set a flag on the two Scintilla instances within Notepad++. Your best option would be to open an issue with the Scintilla project.

teebu commented 4 years ago

Thanks. I set this a few years ago and forgot about it. I think I was trying to make the fonts render better.

dail8859 commented 4 years ago

Most likely the only reason someone would use this flag is to support ligatures (e.g. Fira Code font, etc)

teebu commented 4 years ago

There must be a memory leak in the way the implement it. If i load really big files, the value keeps going up and never releases.

dail8859 commented 4 years ago

Again your best option is to report this to the Scintilla project as I have no clue how it actually implements the text rendering.