Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 475 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Workshop 25 #309307
02/08/10 15:21
02/08/10 15:21
Joined: Oct 2005
Posts: 196
ambe Offline OP
Member
ambe  Offline OP
Member

Joined: Oct 2005
Posts: 196
I have some questions regarding said workshop.

can someone tell me the major downside to using "dplay_localfunction = 2;"?



Last edited by ambe; 02/09/10 19:19.

- code monkey
Re: Workshop 25 [Re: ambe] #310091
02/12/10 22:50
02/12/10 22:50
Joined: Dec 2009
Posts: 5
D
DaGr81 Offline
Newbie
DaGr81  Offline
Newbie
D

Joined: Dec 2009
Posts: 5
im not very good at lite-c yet. but from what i read about that specific line is that it allows the person to see the action on their "client" and it would also save the information on the client

note that im not 100% sure about this. i havnt looked into MP gameplay coding very much. but i hope this helps

Last edited by DaGr81; 02/12/10 22:50.
Re: Workshop 25 [Re: DaGr81] #310095
02/12/10 23:09
02/12/10 23:09
Joined: Oct 2005
Posts: 196
ambe Offline OP
Member
ambe  Offline OP
Member

Joined: Oct 2005
Posts: 196
thank you for your reply DaGr81.
However I know what the purpose of the variable is.
I just don't know if it has a downside, since proc_local and proc_client
also are used to achieve the same "effect".


- code monkey
Re: Workshop 25 [Re: ambe] #310107
02/13/10 00:22
02/13/10 00:22
Joined: Dec 2009
Posts: 5
D
DaGr81 Offline
Newbie
DaGr81  Offline
Newbie
D

Joined: Dec 2009
Posts: 5
it seems that dplay_localfunction performs proc_local and proc_client both in a large scale. proc_local and proc_client effect only one entity function where as dplay_localfunction effects all entity functions, and also proc_local and proc_client do not affect the server where as dplay_localfunction does. so i would assume (to answer your previous question) is that depending on what you want it to effect would determine which you would use. i guess its a matter of memory.

Last edited by DaGr81; 02/13/10 00:23.
Re: Workshop 25 [Re: DaGr81] #310164
02/13/10 13:27
02/13/10 13:27
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
That is not quite right, DaGr81.

I think (although i could be wrong) that dplay_localfunction works just like calling proc_local once in the entity function.
proc_client is not needed then, as proc_local already starts that function on all clients. also, dplay_localfunction does not affect the server, as you wrote.
and btw, you should never use proc_local more than once on one entity.

now to the downside of dplay_localfunction:

when its enabled and an entity is created with ent_create, the id (aka handle) of its function has to be transfered. Thats a bit more traffic, but its worth it if you need some code running for it on the client, as you'd have to use proc_local anyway.
But if you do quite a lot of ent_creates for entities that don't need a local function running, you'd waste some bandwith, and you should turn off dplay_localfunction and use proc_local only for those who need it instead.

I'm not 100% sure if the above is true, but its very likely. only jcl could confirm it.


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