Hi all,
My actual property system is a class inherit from IProperty with the data stored for each property and settings.
It works perfectly but in the final product the settings are not needed, using memory for nothing.
Also, allocate on the heap for each data doing "new PropertyFloat" and so on for each type.
Also get the memory from the property set is slow compared to access directly.
How to improve correctly the property system ?
Is it a good idea to have the variable on the class and link this variable by a pointer on this property instead of having the data in the property class ?
That means in the editor you have this pointer memory added as memory but then in the final product you don't need it.
But then it's needed to still be aware when the property is changed to call all property listener but only in editor mode.
Thank you
Improve Property System
Post code to let us understand what you are talking about. To begin with, what it is that you are calling a "property" or a "setting", what the corresponding classes do (if they are slow, they are nontrivial), and what is "editor mode" .
Omae Wa Mou Shindeiru
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement