News for hackers. Stuff that matters.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by rleigh on Thursday March 23, 2017 @05:32PM (#13944544)
Motif and Xlib use expose events to handle drawing. Doesn't imply retained mode drawing; you could use either in the handler.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by jblow on Thursday March 23, 2017 @06:28PM (#13944927)
It is a little confusing because we are talking about both rendering and GUIs, but ... "retained mode" in this case refers to the GUI itself, not the method of drawing. Motif and Xlib are "retained mode" in the GUI sense because if you want there to be a button, you instantiate that button and register it with the library, and then if you want it to become visible or invisible or change color you call procedures that poke values on that instantiated button. In IMGUI you don't preinstantiate; you just say "draw a button now" and if you don't want it to be visible, you just don't draw it, etc.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by rleigh on Friday March 24, 2017 @11:19AM (#13949469)
This is a fair point. All the mapped XWindows are certainly "retained" from this point of view.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by swah on Thursday March 23, 2017 @09:27PM (#13945826)
But can you imagine something like Word being written without the "retained-mode" abstraction?
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by jblow on Saturday March 25, 2017 @04:04AM (#13954569)
Yes, absolutely, and in fact I think it would be a much better program.