RPTools.net

Discussion and Support

Skip to content

It is currently Tue Nov 21, 2017 10:52 pm 




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. :)



Reply to topic  [ 6 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Giant
 
Joined: Thu May 13, 2010 12:52 pm
Posts: 118
 Post subject: Do the number of token properties impact performance?
PostPosted: Mon Mar 27, 2017 6:51 am 
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


Top
 Profile  
 
User avatar  Online
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7948
Location: Bay Area
 Post subject: Re: Do the number of token properties impact performance?
PostPosted: Mon Mar 27, 2017 3:13 pm 
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:


Top
 Profile  
 
 Offline
Giant
 
Joined: Thu May 13, 2010 12:52 pm
Posts: 118
 Post subject: Re: Do the number of token properties impact performance?
PostPosted: Mon Mar 27, 2017 3:30 pm 
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.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9419
Location: Netherlands
 Post subject: Re: Do the number of token properties impact performance?
PostPosted: Mon Mar 27, 2017 6:16 pm 
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

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
 Offline
Giant
 
Joined: Thu May 13, 2010 12:52 pm
Posts: 118
 Post subject: Re: Do the number of token properties impact performance?
PostPosted: Mon Mar 27, 2017 7:43 pm 
That was a very informative read thank you!


Top
 Profile  
 
User avatar  Online
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7948
Location: Bay Area
 Post subject: Re: Do the number of token properties impact performance?
PostPosted: Mon Mar 27, 2017 11:19 pm 
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.

Well, sort of. You could have a property that will initialize it the first time you mouse over the token.

_________________
Downloads:


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 6 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 3 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman