Adam
Adam
Yeah, that's what I'm throwing together. I've got a basic experimental branch with this underway; I'll post a draft PR sometime soon.
So, while that's true that we don't actually redraw the thing; we do still run all the lua commands with all the computation that entails, even if the draw calls...
> The event system is causing serious CPU usage on literally mouse move. Yeah. This is the case. This can definitely be fixed. > The software drawing and redrawing is...
Well, that was actually fairly straightforward. Here's the top of the C callgraph when there's a decent amount of scrolling (just scrolling back and forth to a get good sample)....
Well, the results speak for themselves. I tested opening src/main.c, and continuously scrolling up and down the file for 20 seconds with callgrind on. Here's vanilla Lite XL:  Here's...
Of course. That's still ongoing. This is just an easy fix that I can throw in right now, at the drop of a hat. Let me know if it helps...
> In reality this is a very welcome, low hanging fruit to improve the CPU usage. Lite-xl is still largely under-optimized for the case when the user scroll the document....
> I guess it doesn't load the entire file at once. We sadly don't support that yet. We should probably do some profiling here; I think that just holding the...
> There is also the problem (at least on linux) that released memory isn't actually recouped by the kernel. Yeah; but if we keep the maximal amount allocated down, it...
Out of curiosity, can you post the file anywhere? I know big JSON files are a dime a dozen, but the specifics matter in this case.