[messages] [Module Design] Calculated Property slows down VASSAL excessively
b.easton at exemail.com.au
Wed Sep 7 13:52:32 CEST 2016
> Each CP is used for exactly one counter, the one showing the result in
> its label.
Ok, that's the worst possible case. Every time every counter is redrawn,
the CP is re-evaluated, even though the die might only be rolled once a
As I mentioned above, you need to change the flow around so that the CP
in each counter is re-evaluated just once each time the die is rolled.
Use a DP to display the value and reference it in the label. Add a Key
Command to the DP that sets the value of the DP to the value of the CP.
When the die is rolled, send a Global key Command to all counters to
fire off the DP Key command.
Now, every time the counter is redrawn, it just displays the value of
the DP in the label. The CP is only invoked when the die is rolled to
update the DP value.
Read this topic online here:
More information about the messages