Schedule Time Bug?
by Toby Mckenzie · in Torque Game Builder · 02/28/2006 (2:01 pm) · 7 replies
I have a fairly simple 'state' machine for moving between different guis within my system, splash screens, attract screens etc. I have just moved the code across to my new dev machine and the timings are massively different. The code I am using is:
On my laptop the timings seem about right, i.e. approx 8 seconds to flip between the mainMenu and the HighScore table. On the new box this is about 0.5 seconds, if that. The new dev box is pretty high spec. Any ideas?
function nextGUI(%transitionEvent)
{
%currentGUI = Canvas.getContent() ;
switch$ (%currentGUI.internalName)
{
case "splashScreenGui":
Canvas.setContent(mainMenuGui) ;
//Stay on the Main Menu for 8 seconds unless an option is selected
$GuiSchedule = schedule(8000,0,"nextGUI","Time") ;
case "mainMenuGui":
if (%transitionEvent $="Time")
{
Canvas.setContent(highScoreGui);
$GuiSchedule = schedule(8000,0,"nextGUI","Time") ;
}
else if (%transitionEvent $="StartGame")
{
Canvas.setContent(gameGui) ;
$GameStarted = true ;
}
else if (%transitionEvent $="Options")
{
Canvas.setContent(optionsGui) ;
}
case "highScoreGui":
Canvas.setContent(mainMenuGUI) ;
$GuiSchedule = schedule(8000,0,"nextGUI","Time") ;
}On my laptop the timings seem about right, i.e. approx 8 seconds to flip between the mainMenu and the HighScore table. On the new box this is about 0.5 seconds, if that. The new dev box is pretty high spec. Any ideas?
About the author
#2
03/01/2006 (6:50 am)
Well guessed, I am running an AMD Athlon X2 64 4400 with an ATI 1900 XTX graphics card.
#3
03/01/2006 (7:00 am)
I'm assuming that means dual core?
#4
03/01/2006 (7:01 am)
Sorry - yes dual core
#5
03/01/2006 (7:15 am)
Quoted from a TGE forum:Quote:
Hi F.W.
Its odd, I JUST joined and on my first forum view I have the answer! ;) Its a simple driver install distributed directly from AMD. I previously had this issue and found the answer after searching and searching! Here is the link:
AMD Dual Core drivers
There are two driver versions (each classified as drivers). The first is for x64 versions of windows and the second is for x32 versions of windows. This should solve the problem, let me know if it works!
-Jason
#6
03/01/2006 (7:20 am)
Thanks for that, will try it out when I get back tonight and let you know how it goes.
#7
03/01/2006 (11:38 am)
Worked a treat, thanks
Torque 3D Owner Stephen Zepp
Can you list the specs of your new laptop so we can see if it is in fact similar?