Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Quad, VoroneTZ), 484 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
help with attached entity lagging plz #468863
10/24/17 00:04
10/24/17 00:04
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline OP
User
badapple  Offline OP
User

Joined: Apr 2006
Posts: 624
DEEP 13
hi , i havent been on the forum for a long while , lost my talents lol .
im working with a8 free edition right now on a space type game and im trying to attach a turret to the top of my ship using a vec_for vertex to place and hold it but it lags and doesnt stay tight with the vertex . i seem to remember there was something you could put in the code to keep attached entities from lagging but cant remember what , any suggestions ? im also using lite c not wdl

Last edited by badapple; 10/24/17 00:27.
Re: help with attached entity lagging plz [Re: badapple] #468866
10/24/17 05:19
10/24/17 05:19
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
You can set
proc_mode = PROC_LATE;
in the while loop of your turret attach function to put the function at the end of the scheduler. Then it should be executed each frame after you have already moved your ship.
A more robust approach (imagine you may need to set the same proc_mode in the ship function at some point) is to call the turret placement function (without a while loop) at the end of your ship loop, then you don't need to worry about proc_mode stuff and it will always work.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: help with attached entity lagging plz [Re: badapple] #468873
10/24/17 18:39
10/24/17 18:39
Joined: Aug 2003
Posts: 118
Deutschland
E
Ezzett Offline
Member
Ezzett  Offline
Member
E

Joined: Aug 2003
Posts: 118
Deutschland
At the bottom of the following manual page you can find the same solution Superku told you:

http://www.conitec.net/beta/aAnhang_events.htm

Re: help with attached entity lagging plz [Re: Ezzett] #469504
11/18/17 14:57
11/18/17 14:57
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline OP
User
badapple  Offline OP
User

Joined: Apr 2006
Posts: 624
DEEP 13
thx guys


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

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