Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: small fps with physic [Re: Andreas C] #48165
06/21/05 14:41
06/21/05 14:41
Joined: May 2005
Posts: 22
Hun
Cube Offline OP
Newbie
Cube  Offline OP
Newbie

Joined: May 2005
Posts: 22
Hun
I think all data is good in debug mod.

If I use 20 domino then this happens too, but less.


Quote:

Does your ACTION code for the physic entities include WAIT statement ?



What do you mean about that? Sorry, my english isn't good


Sorry for my English
Re: small fps with physic [Re: Cube] #48166
06/21/05 15:35
06/21/05 15:35
Joined: Sep 2001
Posts: 375
Hamburg, Germany / Springfield...
Andreas C Offline
Senior Member
Andreas C  Offline
Senior Member

Joined: Sep 2001
Posts: 375
Hamburg, Germany / Springfield...

What code is being used for your entities (physics objects and player) ?

Are there any long sections of code that may need a WAIT statement in between in order to keep one task/code routine from hogging CPU time ?

At this point you have not provided enough detail to do any serious analysis of where the problem lies.

Cheers,
Andreas


____________________________________________________
GameCore / Unity / UDK
Lightwave 9.6 / Blender / Fragmotion / ZBrush 3.5
TextureMaker / PSP-X
Re: small fps with physic [Re: Andreas C] #48167
06/21/05 16:13
06/21/05 16:13
Joined: May 2005
Posts: 22
Hun
Cube Offline OP
Newbie
Cube  Offline OP
Newbie

Joined: May 2005
Posts: 22
Hun
player:
Code:
 
function player_gravity()
{
vec_set(temp,my.x);
temp.z -= 4000;
trace_mode = ignore_me+ignore_sprites+IGNORE_MODELS+USE_BOX;
if (result>5)
{
force.X = 0;
force.Y = 0;
force.Z = -5;
friction = 0;
szar=1;
}

if (result<3)
{
force.X = 0;
force.Y = 0;
force.Z = -10*result;
friction = 20;
szar=0;
}
}

action move_me
{
player=my;
while (1)
{
player_gravity();
vec_set(temp,my.x);
temp.z -= 4000;
trace_mode = ignore_me+ignore_sprites+IGNORE_MODELS+USE_BOX;

my.skill13 = time*force.z + max(1-time*friction,0)*my.skill13;
dist.x = 0;
dist.y = 0;
dist.z=time*my.skill13;

move_mode = ignore_passable + glide;
ent_move(dist,nullvector);
wait(1);
}
}



domino:
Code:
 action box_grav
{
phent_settype(my,PH_RIGID,PH_box);
phent_setmass(my,23,PH_box);
phent_setfriction(my,25);
phent_setelasticity(my,0,0);
phent_setdamping(my,50,90);
ph_setgravity( vector(0,0,-386) );
}




Sorry for my English
Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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