Events are being fired WAY too much
Posted: Wed Jul 13, 2005 22:40
I have two pages/screens, and two buttons to flip back and forth between them (the two layouts).
I am using
Each time I go from the first page to the second, this event is being fired way too many times.
It goes some like this:
# of clicks vs. # of times handleSkipLogin() is called
1 | 1
4 | 20
5 | 50
6 | 130
7 | 330+
At this point it takes a few seconds until the second screen pops up. I've got no idea whats going on .
I am using
Code: Select all
subscribeEvent(
CEGUI::PushButton::EventClicked,CEGUI::Event::Subscriber(
&CLoginState::handleSkipLogin,this));
Each time I go from the first page to the second, this event is being fired way too many times.
It goes some like this:
# of clicks vs. # of times handleSkipLogin() is called
1 | 1
4 | 20
5 | 50
6 | 130
7 | 330+
At this point it takes a few seconds until the second screen pops up. I've got no idea whats going on .