Difference between revisions of "Talk:Performance Enhancing Bug"

From Robowiki
Jump to navigation Jump to search
(Some explanation)
Line 6: Line 6:
  
 
(Edit conflict) I actually don't know much about this, I just tried to make what [[User:Nat|Nat]] wrote a little more clear. But it's actually having that code absent which is the desired effect. I presumed it was because it randomized the aiming. (Eg, [[Head-On Targeting]] without the <code>setAdjustGunForRobotTurn(true)</code> would be cheap [[Random Targeting]].) Maybe Nat can explain better. --[[User:Voidious|Voidious]] 15:37, 26 May 2009 (UTC)
 
(Edit conflict) I actually don't know much about this, I just tried to make what [[User:Nat|Nat]] wrote a little more clear. But it's actually having that code absent which is the desired effect. I presumed it was because it randomized the aiming. (Eg, [[Head-On Targeting]] without the <code>setAdjustGunForRobotTurn(true)</code> would be cheap [[Random Targeting]].) Maybe Nat can explain better. --[[User:Voidious|Voidious]] 15:37, 26 May 2009 (UTC)
 +
 +
On simpler aim bots, or bots that already have a lot of inaccuracy in their aim, leaving setAdjustGunForRobotTurn(true) out of the code can actually help aim - espcially if the built in inaccuracy has a bias in a direction away from the target.  As an example, many nano PM bots bias behind the enemy due to the cost of trying to fix this.  On top of this, no nano PM bots take into account radial (to and fro) velocity from the enemy - this already adds error to the aim.  Removing the setAdjust just further randomizes the aim and can help remove the effect of the bias.  In [[Moebius]], I mostly fixed this bias and tend to aim more accurately.  As such, removing the setAdjust... code for me cost 1-2% of performance.
 +
 +
One last thing, removing setAdjustGunForRobotTurn(true) on a bot that is always moving will nearly guarentee that they cannot hit a stationary or disabled robot at any range - a serious defect outside of anything besides a dodge bot. --[[User:Miked0801|Miked0801]] 15:59, 26 May 2009 (UTC)

Revision as of 17:59, 26 May 2009

setAdjustGunForRobotTurn(true)

Wait, why does it say "Robocoders will "Leave it in" since NanoBots can't fit more complex code that would emulate this effect."? Is such emulation of the effect more desirable than setAdjustGunForRobotTurn(true) for some reason? --Rednaxela 15:19, 26 May 2009 (UTC)

I'm not really sure, but I believe he was saying that nanobots can't fit in the code that would fix whatever problem it is that makes it better to not have SetAdjustGunForRobotTurn(true)--CrazyBassoonist 15:34, 26 May 2009 (UTC)

(Edit conflict) I actually don't know much about this, I just tried to make what Nat wrote a little more clear. But it's actually having that code absent which is the desired effect. I presumed it was because it randomized the aiming. (Eg, Head-On Targeting without the setAdjustGunForRobotTurn(true) would be cheap Random Targeting.) Maybe Nat can explain better. --Voidious 15:37, 26 May 2009 (UTC)

On simpler aim bots, or bots that already have a lot of inaccuracy in their aim, leaving setAdjustGunForRobotTurn(true) out of the code can actually help aim - espcially if the built in inaccuracy has a bias in a direction away from the target. As an example, many nano PM bots bias behind the enemy due to the cost of trying to fix this. On top of this, no nano PM bots take into account radial (to and fro) velocity from the enemy - this already adds error to the aim. Removing the setAdjust just further randomizes the aim and can help remove the effect of the bias. In Moebius, I mostly fixed this bias and tend to aim more accurately. As such, removing the setAdjust... code for me cost 1-2% of performance.

One last thing, removing setAdjustGunForRobotTurn(true) on a bot that is always moving will nearly guarentee that they cannot hit a stationary or disabled robot at any range - a serious defect outside of anything besides a dodge bot. --Miked0801 15:59, 26 May 2009 (UTC)