Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Time to refresh the CC Toolbar
ollydbg:
--- Quote from: oBFusCATed on February 04, 2013, 11:55:34 am ---I've just had slowness, probably caused by the toolbar in one of the larger files of C::B, probably codecompletion.cpp.
No external files has have been modified, but every move of the cursor caused a slowdown and a flicker of the toolbar.
--- End quote ---
OK, you confirm the bug, thanks.
As I said before, the reason is: the toolbar's contents(wxChoice's contents) were always calculated and refreshed in the editor hook function, after
--- Code: ---if (event.GetEventType() == wxEVT_SCI_UPDATEUI)
--- End code ---
Alpha:
Look at the refresh logic in the most recent patch in my queue; some of it probably would be applicable here as well.
ollydbg:
--- Quote from: Alpha on February 04, 2013, 04:09:53 pm ---Look at the refresh logic in the most recent patch in my queue; some of it probably would be applicable here as well.
--- End quote ---
CCsemant4.patch? (see attachment if other forum user want to test)
CC's toolbar have mainly two functions:
1, if the user select a function (wxChoice), then the caret will jump to the selected function in the editor.
2, if the user move the caret in the editor, the toolbar(wxChoice) should be updated to indicate which function was the caret located in.
I think the above "2" currently cause the lag, and should be optimized, I mean, if the user move the caret in the same function scope. (a function body usually contains a starting brace line and the closing brace line), we don't need to update the wxChoice.
Navigation
[0] Message Index
[*] Previous page
Go to full version