Performance issues
by Edel · in Torque Game Builder · 09/05/2006 (3:28 pm) · 7 replies
I seem to be having some serious performance issues with TGB. Particularly with scrolling backgrounds, I seem to have a lot of image tearing. My system specs are
P4 2.53 gig "533 FSB"
Nvidia 5950 Ultra 256mb
1.5 gigs of ram "pc2100"
I was under the impression that I had a pretty solid system, specially for 2d graphics...
My question is: is there anything that I could do script wise to help performance? Or is it time to buy another rig? I HOPE that its my system or something I'm doing wrong and not GameBuilder. But I really am getting some crapy performance... LOTS of IMAGE TEARING!!!
P4 2.53 gig "533 FSB"
Nvidia 5950 Ultra 256mb
1.5 gigs of ram "pc2100"
I was under the impression that I had a pretty solid system, specially for 2d graphics...
My question is: is there anything that I could do script wise to help performance? Or is it time to buy another rig? I HOPE that its my system or something I'm doing wrong and not GameBuilder. But I really am getting some crapy performance... LOTS of IMAGE TEARING!!!
About the author
#2
09/05/2006 (3:51 pm)
Is it actually running slowly, or images are just tearing? Are you sure it isn't a vSync issue? Where do we turn that on in TGB?
#3
09/05/2006 (4:37 pm)
$pref::Video::disableVerticalSync in common/preferences/prefs.cs
#4
Is there indeed a way to set Vsync in TGB? Even the Shooter tutorial runs normal speed just a lot of tearing. Note: I am using 2 monitors my work design monitor -samsung 244T widescreen at res 1920 x 1200 at 60refreash and my 17inch CRT at 1024 x 768 85 refresh. On both the game still runs poorly!!! Not speed but TEARING!!!
09/05/2006 (4:46 pm)
Well an example: I completed the "MiniPlatformer Tutorial" not sure if you've done those but in that example I get LOTS of image tearing. The examples use tile maps for the levels at "tile size" 32 x 32. I would not say it runs SLOW, but just the tearing. It feels as though some kind of Vsynk issue or maybe the "refresh rate bug in windows xp?"Is there indeed a way to set Vsync in TGB? Even the Shooter tutorial runs normal speed just a lot of tearing. Note: I am using 2 monitors my work design monitor -samsung 244T widescreen at res 1920 x 1200 at 60refreash and my 17inch CRT at 1024 x 768 85 refresh. On both the game still runs poorly!!! Not speed but TEARING!!!
#5
09/05/2006 (4:50 pm)
I'm pretty sure you want to set vsync ON to stop tearing. Unfortunately (IIRC) enabling vsync will only work in fullscreen mode, at least on windows. Do the images still tear, even with vsync enabled in fullscreen mode?
#6
Matthew Langley reminded me (in a similar thread) not to forget these commands:
type this in the console when running your game.
profilerEnable(true);
Then run your game for a minute or two, then type this in the console.
profilerDump();
and you should see a lot of info telling you what is using most of the processing time.
Maybe this will help, I'm not sure how to interpret all of the results, maybe it will help figure the actual problem out.
Just a suggestion, good luck.
09/05/2006 (8:25 pm)
You might make sure that it's not something related to the code.Matthew Langley reminded me (in a similar thread) not to forget these commands:
type this in the console when running your game.
profilerEnable(true);
Then run your game for a minute or two, then type this in the console.
profilerDump();
and you should see a lot of info telling you what is using most of the processing time.
Maybe this will help, I'm not sure how to interpret all of the results, maybe it will help figure the actual problem out.
Just a suggestion, good luck.
#7
//------------------------------------------------------------------
function playerClass::onLevelLoaded(%this, %scenegraph)
{
setScreenMode(800,600,32,true);
**setVerticalSync(true);**
//Whatever code........
}
//-----------------------------------------------------------------
Also, I have a Samsung 24' LCD monitor with 6ms refresh, and while it is a dream for graphic design and 3d applications...It SUCKS FOR 2D Gaming!!! Lots of GHOSTING!!! Thank god I never through out my 17" hp monitor...Ha-ha my prototypes run SILKY smooth on that thing!!! Hope this thread helped.
09/06/2006 (9:21 pm)
Well I solved my problem easy fix. It was a Vsync issue after all. This is what I did://------------------------------------------------------------------
function playerClass::onLevelLoaded(%this, %scenegraph)
{
setScreenMode(800,600,32,true);
**setVerticalSync(true);**
//Whatever code........
}
//-----------------------------------------------------------------
Also, I have a Samsung 24' LCD monitor with 6ms refresh, and while it is a dream for graphic design and 3d applications...It SUCKS FOR 2D Gaming!!! Lots of GHOSTING!!! Thank god I never through out my 17" hp monitor...Ha-ha my prototypes run SILKY smooth on that thing!!! Hope this thread helped.
Torque 3D Owner Chris Jorgensen
Cascadia Games LLC