Forrest Posted December 11, 2015 Share Posted December 11, 2015 Hey, just looking into something that has never really bothered me before, but now I'd like my server maps to be hidden and not accessible, so I thought now would be the time to ask. What are the differences between using .map or server-sided createObject? Is there any difference in streaming, or performance? Thanks. Link to comment
Moderators IIYAMA Posted December 11, 2015 Moderators Share Posted December 11, 2015 .map vs createObject There is a difference between loading speed. Because for loading a map file there is only 1 MTA function needed(or none when it is included in the meta.xml). When using createObject you have to execute that per object and you have to use other functions to add properties. Map files will be loading directly with the C++ functions which are intern. When using MTA functions, they will call those functions external. Which is slower. Link to comment
Forrest Posted December 11, 2015 Author Share Posted December 11, 2015 Oooh, that makes sense I guess. How about streaming? Does that make any difference? Is there any way to use .maps without them being stored on the client? Link to comment
MIKI785 Posted December 11, 2015 Share Posted December 11, 2015 They are not stored on the client. Link to comment
Moderators IIYAMA Posted December 12, 2015 Moderators Share Posted December 12, 2015 They both create the same type of elements. The only difference is that they use a different (middle) parent element. See here more information about those middle parents: https://wiki.multitheftauto.com/wiki/Element_tree Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now