Do the number of token properties impact performance?
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
Do the number of token properties impact performance?
Working on my own Pathfinder Framework, there are sooo many bonus types, just for skills alone, I will need over 300 properties. Just wondering if I put them all in if I am risking bloating the framework to the point of causing issues. MapTool Version: 1.3.b91
Re: Do the number of token properties impact performance?
300 is not that bad, but I would recommend grouping them and putting them in either json or string property format for ease of readability and portability. Not everything has to be a "visible" token property. You can define "hidden" properties, those not defined in the token type by simply using setProperty in a macro.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Do the number of token properties impact performance?
Yes, I plan on doing that, though you have to be careful with hidden properties because you can't give them a default value. I have to have an initialize token macro, to initialize all of the hidden properties each time I drag a new token in.
Re: Do the number of token properties impact performance?
to answer your topic question: check out the link in my sig on speeding up macros
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: Do the number of token properties impact performance?
That was a very informative read thank you!
Re: Do the number of token properties impact performance?
Well, sort of. You could have a property that will initialize it the first time you mouse over the token.Zandel wrote:Yes, I plan on doing that, though you have to be careful with hidden properties because you can't give them a default value. I have to have an initialize token macro, to initialize all of the hidden properties each time I drag a new token in.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools