Page 1 of 1

dramatic slowdown while debugging

Posted: Tue Sep 19, 2006 21:37
by Pompei2
Hello again,

I've got a little application that uses CEGUI with the SDL, very very similar to the tutorial for CEGUI (0.5RC1) +SDL.

It's Ok that this application runs a bit slowly in Debug mode, but when I debug some code, say the function that handles a pushbutton click, everytime i do a single step in the code, my whole system is VERY slow for a few seconds (mouse cursor and everything lagging as hell) and then all runs fine, until the next step ...

I'm using Windows 2000 and compiling/debugging with Visual Studio 2005 Express. Didn't try it on linux yet, I will give it a try in a few days.

My question is: does anybody have experienced the same problem (and maybe found a solution ?)

And: Is it known that loadScheme takes a while ? Can I do something to make it a bit quicker ? (I already use TinyXML)

ps: debugging some code before the main loop runs normally, but after the mainloop it is still the same.

Hope I was clear :)

[EDIT] Done some testing and it seems that it's only this slow when i jump into a breakpoint. If i put a breakpoint at the beginning of my app, and step trough the whole app (and the mainloop) I didn't get these extreme slowdowns.[/EDIT]

Posted: Wed Sep 20, 2006 21:45
by Ludi
I never had such a problem as you descripe.

I know, this doesn't help you very much, but it's all I can say :)

Posted: Thu Sep 21, 2006 18:36
by Pompei2
Ludi wrote:I know, this doesn't help you very much, but it's all I can say :)

true :D but at least you say something :p

What system and compiler are you using ? maybe it is not a cegui issue but a SDL or openGL one :? i have no idea, this weekend i'll do more deep testing ...