cEgo.Transparency = 100;
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
cEgo.Transparency = 100;
Quote from: neon on Tue 05/08/2008 15:02:43
You have a german title, so you will need a german version.
Quote from: Rocco on Sat 02/08/2008 17:46:46
Normally when you on track, you can go back to main menue with <Esc>,
and in the main menue you can exit the game with the exit button.
Quote from: Rocco on Sat 02/08/2008 17:46:46
When you stuck in a wall, best way is to head back (push down arrow 2times, 2nd time when the car stands) out of the wall area and go on.
Quote from: zabnat on Sat 02/08/2008 17:07:26That one's definitely true, for obvious reasons.
1. Using precalculated tables for sin, cos, tan etc. is faster than using Maths.Sin etc. when you only need to have like 360 values of each (this I haven't actually tried with AGS)
Quote from: zabnat on Sat 02/08/2008 17:07:26Are bitwise operations even possible in AGS? I doubt it, but am prepared to be surprised.
2. Using bitwise operations instead of arithmetic operations is actually a little slower. For example: x = x * 64; -> x = x << 6;
Quote from: zabnat on Sat 02/08/2008 17:07:26True.
3. Using 16-bit color mode instead of 8-bit seems to have no performance hit at all.
Quote from: zabnat on Sat 02/08/2008 17:07:26Yup, it's mentioned and true. Actually, it's a lot slower. Also, if you're using a higher resolution, or, even worse, a filter, performance drops significantly.
4. Direct3D9 is a little slower than DirectDraw5 with RawDraw. (IIRC this was mentioned in the manual)
Quote from: zabnat on Sat 02/08/2008 17:07:26Doesn't apply here, there's no difference in performance, and I'm pretty sure there shouldn't be one. This might be a problem within AGS.
5. Launching the compiled exe rather than testing the game from editor results in about 1,5x performance.
Quote from: zabnat on Sat 02/08/2008 17:07:26Try finding your bottlenecks, if it's the math, try to simplify it as best as possible using smart and elegant formulas and terms. If it's the drawing, don't drawing anything off screen or hidden, also design your game in a way that it's not necessary to draw quite as much stuff.
ps. have any tips for performance optimization?
Quote from: Joe Carl on Thu 31/07/2008 18:09:48
What I mean is that games I compile with ags are really big (like 30mb) [...]
Quote from: Lt. Smash on Thu 31/07/2008 17:42:05
or Chris could add the switch command. One 'switch' could replace all of these 100 if/else.
cEgo.Say("Thanks i'll do that)
// in rep_exec
if ( mouse.y < 20 )
// if mouse is close to top-edge of the screen
{
// if GUI is not yet visible
if ( !gBar.Visible )
gBar.Visible = true;
}
else
// if mouse is not close to top-edge of the screen
{
// if GUI is not yet hidden
if ( gBar.Visible )
gBar.Visible = false;
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.242 seconds with 15 queries.