Re: Increased CPU utilization due to SC_WIN_IDLE messages

"'Neil Hodgson' via scintilla-interest" <[email protected]> Sun, 26 Jan 2025 10:21:44 +1100
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
ekopalypse:

> I use Scintilla within a Windows dialog.
> If I now use multiple views within the dialog,

   Are there multiple views on a single document?

> then there is increased CPU utilization due to SC_WIN_IDLE messages.

   There should only be a need for continued idle processing when word wrap or idle styling is enabled. If either of these is on, try with them turned off. Otherwise put a trace inside idle processing (Editor::Idle) to see what it thinks is being worked on. Doing work inside SCN_UPDATEUI can slow things down and modifying Scintilla there could cause more processing.

   Outstanding idle messages should be capped at 1 but there could be some cases where more occur.

   The trace shows subsequent SC_WIN_IDLEs (due to the same wParam start time) not originating SC_WIN_IDLEs from the timer firing which would have a 0 wParam.

   Neil

-- 
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/7B095563-DF75-41E0-9588-94C3B7162BA0%40me.com.