Topic on User talk:Ickputzdirwech

Jump to navigation Jump to search

I did some further improvements to Template:True Melee DPS Calculator (among other things I realised we only needed four attacks for weapons). And compared to pre 13. Nov. 23 it runs about 40% faster Test case: {{True Melee DPS Calculator|Longsword|Gold|Good|Human}}.

Unfortunately this doesn't seem to be enough. Strangely enough, the preview of Template:Melee Weapons Table loads if I activate the material toggle - but after I save I can't load the page.

> do the combined bluntAndQualityFactor and sharpAndQualityFactor really make a difference?

>>It was most a test to see how much of a difference a small difference would make - that same extra var call and multiplication was done what, like 20 times if every one fired? Iirc it was a couple of percent different. Not huge, but not nothing. Nothing I could see was pulling those values out to use, and I didn't really see a use for doing so either, but if you disagree you're welcome to revert that bit. Whatever you need. The vast majority is from changing it to #show/fixing the defaults.

I looked at it again and I think I understand now, why it makes a difference: the number of variables gets reduced by one and more importantly the multiplication of these to values is done only once. Thanks for the explanation!