CreateObject vs CreateDynamicObject
#1

What's the difference? Does it somehow affect the script? Thanks in advance.
Reply
#2

CreateDynamicObject creates a streamed object.
You can have waaay more streamed objects in a server than normal objects.
(That's pretty much what a streamer does)
Reply
#3

CreateDynamicObject is a streamer which you can say is an unlimited amount of objects because it streams them only when the player is near the area.

CreateObject has a limit of around 5,000 objects (I think) and is shown all the time which can cause lag.

I'd highly recommend CreateDynamicObject because you can have an unlimited amount of objects and can prevent FPS lag.
Reply
#4

Quote:
Originally Posted by knackworst
View Post
CreateDynamicObject creates a streamed object.
You can have waaay more streamed objects in a server than normal objects.
(That's pretty much what a streamer does)
I see, so it doesn't affect lag somehow?
Reply
#5

Quote:
Originally Posted by CesarLT
View Post
I see, so it doesn't affect lag somehow?
I've spoken about that in my reply, read that one, it's a bit more explained too.
Reply
#6

Quote:
Originally Posted by DanishHaq
View Post
I've spoken about that in my reply, read that one, it's a bit more explained too.
True :/
BTW if you would like to create maps to be shown in the class selection you will have to use the regular CreateObject though, that should be the only time you use the regular CreateObject
Reply
#7

Quote:
Originally Posted by knackworst
View Post
True :/
BTW if you would like to create maps to be shown in the class selection you will have to use the regular CreateObject though, that should be the only time you use the regular CreateObject
Not really.

Quote:
Originally Posted by Streamer Plugin
Use Streamer_UpdateEx to preload items before setting a player's position or to stream items under OnPlayerRequestClass.
Reply
#8

CreateDynamicObject is good, As that guy said it creates streamed objects. Use the streamer plugin and it doesn't gives us lag because normally when the user connects the maps are loaded and the server lags like shit, So this streaming objects are visible only when the user is near to the object at acurate distance.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)