Re: [2016.02.21] Dynamic Objects and Properties - v004
I just moved this to Github and released version 004.
The main post has been updated. A new example is included on how this is used that covers almost all features of Dynamic. |
Re: [2016.02.27] Dynamic Objects and Properties - v005
As we know, methodmaps require data backing the properties which steers people away from using them.
You can create methodmaps that inherit the Dynamic class and write properties that use the dynamic object to back the properties. dynamic-example.inc Quote:
1. All members must be set to their default values in the constructer 2. Use static offsets in each property to increase performance I'm about to make a webpage where you can define your class. It will then spit out the methodmap to make that class using Dynamic. |
Re: [2016.02.27] Dynamic Objects and Properties - v005
Dynamic Classes
- Extend Dynamic to create your own Dynamic Classes - A Class Builder to quickly generate basic Dynamic Classes - You dont have to muck around with Dynamic Member Offsets to improve performance - All of the same features that come with Dynamic Objects I just finished a basic web based class builder.
I used these settings to...
Generate this methodmap...
Which can be used like this in a plugin!
|
Re: [2016.02.27] Dynamic Objects and Properties - v005
not bad... not bad
|
Re: [2016.02.27] Dynamic Objects and Properties - v005
The latest profile stats...
I'm really curious around why the reading of members using a string membername is quicker than using integer offsets. Quote:
|
Re: [2016.02.27] Dynamic Objects and Properties - v005
Just updated Dynamic to version 0.0.6
Changes...
The technical answer as to why offsets are now faster...
The latest profile stats...
Member name lookups vs Offset lookups...
Github Changes Download Edit: I've completed a code generate tweak for the Dynamic Class Generator. - Member offsets are stored when a member is set for the first time |
Re: Dynamic Objects and Properties - v006 - [2016.03.15]
Just realised I need to add support for boolean types.
I'll do this soon by wrapping Get/SetBool around integer support. This will be similar to how Get/SetObject works if your familiar with how the Dynamic methodmap works. In the mean time booleans can be used with Get/SetInt. |
Re: Dynamic Objects and Properties - v006 - [2016.03.15]
Quote:
|
Re: Dynamic Objects and Properties - v006 - [2016.03.15]
Great question.
Handles can currently be used via Get/SetInt. You might need view_as casting to avoid type mismatch warnings. I will however add support for Handles after completing bool support. |
Re: Dynamic Objects and Properties - v006 - [2016.03.15]
This is amazing.
Thanks for this! this saved me hours of writing natives to cross communicate with plugins |
All times are GMT -4. The time now is 11:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.