Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 16,302 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
c_trace causing serious slowdowns? #289005
09/09/09 21:29
09/09/09 21:29
Joined: Sep 2008
Posts: 68
T
Tai Offline OP
Junior Member
Tai  Offline OP
Junior Member
T

Joined: Sep 2008
Posts: 68
Since I've been coding my game for a while, I hadn't really noticed this, since I guess I got used to it, but c_tracing with the following causes 'jerks' in the movement?

Code:
while(1)
{
  //movement code and stuff here
   c_trace(my.x,vector(my.x,my.y,my.z-30),IGNORE_ME|IGNORE_SPRITES);


This seems curious; does tracing cause that big of a slowdown? The fps is unchanged, and I need to use c_traces (actually more then one in some situations), so this poses a problem.


EDIT: Problem solved, not c_trace after all

Last edited by Tai; 09/09/09 22:20. Reason: Fixed
Re: c_trace causing serious slowdowns? [Re: Tai] #289009
09/09/09 22:19
09/09/09 22:19
Joined: Sep 2008
Posts: 68
T
Tai Offline OP
Junior Member
Tai  Offline OP
Junior Member
T

Joined: Sep 2008
Posts: 68
Ugh, chalk this one up to stupidity; I had multiple vector calculations running every frame, instead of a single frame like I intended. Problem Solved.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1