Re: [TUT] Better Methodmaps tut
Are you breaking up with me?
|
Re: [TUT] Better Methodmaps tut
Quote:
|
Re: [TUT] Better Methodmaps tut
The only part I don't fully understand is when doing stuff like inheriting an ArrayList in a methodmap.
This one guy did upload a "Dynamic" plugin which is designed to allow developers to make the closest thing to objects. Well I figured out it would likely be simpler to just make a methodmap and have it inherit ArrayList like such: Code:
methodmap BDoor < ArrayList |
Re: [TUT] Better Methodmaps tut
Dynamic addresses a few concerns around simply inheriting ArrayList.
1. Blocksize: If you set a blocksize to accommodate for Strings your waisting memory for int/bool/float values. 2. It's nice to share methodmaps between plugins: however; if one plugin orders the indicies differently your corrupting data. You'd be best to inherit to a trie memory wise. A membername lookup via trie is really fast (dynamic does this internally). Once again Dynamic is designed to address a few issues when using a trie. 1. You might want to iterate members, this is impossible using a trie alone 2. Dynamic members are typed. Dynamic knows the type of each member and supports full type conversion for all the base pawn tags. Everything dynamic does is for a good reason. It can do 100k member reads in less than .1 seconds. So you shouldnt be concerned about performance. I have dynamic classes that have 100+ members and some members running on each frame / usercmd with no issues at all. |
Re: [TUT] Better Methodmaps tut
Quote:
You can iterate over a Trie by getting by getting a snapshot of its keys using CreateTrieSnapshot or StringMap's .Snapshot |
Re: [TUT] Better Methodmaps tut
Interesting.
Im going to have a play and do some benchmarking against dynamics current iteration support. Love your work mr lord. |
| All times are GMT -4. The time now is 22:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.