User forums > Help
slow
dmoore:
didn't you say some of the wx samples gave you problems (in which case it is not just the editor) or were they resolved when you compiled wx yourself?
rotalever:
Yes, the wx sample from their homepage. The HTML viewer and the example which shows all the different widgets (->textbox widget). Both have the same problem if I select text with the mouse or edit it. Those examples have a build-in wx, selfcompiling wx changes nothing. I think self compiling wx will not make things that faster.
I have the problems in both samples and in the editor of CB. But the message window of CB is very fast...
dmoore:
well, i think the next step is to try running callgrind (part of valgrind) to see where the bottlenecks are. I suggest running on the html viewer sample spending a lot of time manipulating the laggy bits of the UI (it will take forever to do a callgrind on cb itself, especially in its non-functioning state). some of the other guys here might be able to tell you how to tune a callgrind run...
the other thing to try would be gradually commenting out/switching off various bits of the html viewer sample to isolate the cause of the lag.
also in cb, have you tried creating a new resource in wxSmith -- do you have lag in the wxSmith resource editor?
it's hard to help much more than this because i don't have a machine that has these problems... Unless there is a problem with a specific wx widget or feature there may be little than can be done by the cb devs.
rotalever:
--- Quote from: dmoore on July 31, 2007, 06:35:42 pm ---it's hard to help much more than this because i don't have a machine that has these problems... Unless there is a problem with a specific wx widget or feature there may be little than can be done by the cb devs.
--- End quote ---
Yeah, thats true, but I asked this in the wxWidgets forums and someone said:
"I don't think anyone knows why, but wx apps using gtk2 do take a long time to render. There's no 'quick' fix for this. "
I can now profile the whole thing etc., but in my opinion this will not help. The user also said I should use GTK1 instead of GTK2 because it is much faster. I would do this, but CB does not compile with GTK1.
dmoore:
--- Quote from: rotalever on July 31, 2007, 08:13:12 pm ---The user also said I should use GTK1 instead of GTK2 because it is much faster. I would do this, but CB does not compile with GTK1.
--- End quote ---
how about compiling a revision from before the recent update to the latest wxFlatNotebook? (I think it has introduced a number of incompatibilities with wx2.6.3). if that compiles then it shouldn't be too hard to come up with patches to the latest wxFlatnotebook.
try checking out rev 4310... (usual svn checkout command with additional option "-r 4310") (you could also svn update to it to save bandwidth, but that might create more hassles than it's worth)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version