<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[notifyWhenAttacked(enabled) should not be const (0.2 CPU)]]></title><description><![CDATA[<p>Dear awesome Devs,<br><br>I'd like you to rethink the 0.2 CPU of the notifyWhenAttacked function.<br>Since it is enabled by default, the only reason to use it is to disable notifications...<br>Which reduce the cpu pressure on the server.<br><br>For example, I disable them on my miner and fighters in keepers room since they create notification bloat/spam.<br><br>I don't think we should have to 'pay' in CPU term for this.<br>Also I don't consider these notification to be part of the Game state in term of gameplay, but this is opinionated so not very important.<br><br>Potentials proposal:<br>* disable it by default and make it cost 0.2 to ACTIVATE it.<br>* make the value as an optional arguments in Spawn.createCreep function.<br>* Remove the (0.2) CPU cost of this function call altogether.<br><br>PS: not sure if it should be in technical issues or feature request.<br>PS2: the amortized CPU cost of the call is very low, I know it is a bit nitpicking.</p>]]></description><link>http://screeps.com/forum/topic/582/notifywhenattacked-enabled-should-not-be-const-0-2-cpu</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Mar 2026 19:43:50 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/582.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Oct 2016 09:28:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to notifyWhenAttacked(enabled) should not be const (0.2 CPU) on Invalid Date]]></title><description><![CDATA[<p>Dear awesome Devs,<br><br>I'd like you to rethink the 0.2 CPU of the notifyWhenAttacked function.<br>Since it is enabled by default, the only reason to use it is to disable notifications...<br>Which reduce the cpu pressure on the server.<br><br>For example, I disable them on my miner and fighters in keepers room since they create notification bloat/spam.<br><br>I don't think we should have to 'pay' in CPU term for this.<br>Also I don't consider these notification to be part of the Game state in term of gameplay, but this is opinionated so not very important.<br><br>Potentials proposal:<br>* disable it by default and make it cost 0.2 to ACTIVATE it.<br>* make the value as an optional arguments in Spawn.createCreep function.<br>* Remove the (0.2) CPU cost of this function call altogether.<br><br>PS: not sure if it should be in technical issues or feature request.<br>PS2: the amortized CPU cost of the call is very low, I know it is a bit nitpicking.</p>]]></description><link>http://screeps.com/forum/post/2834</link><guid isPermaLink="true">http://screeps.com/forum/post/2834</guid><dc:creator><![CDATA[Voronoi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to notifyWhenAttacked(enabled) should not be const (0.2 CPU) on Invalid Date]]></title><description><![CDATA[<p>I don't mind paying the 0.2 cpu to disable it, but the fact that you can't tell what state it's currently set to is what I dislike. If we could check what state it's in and decide whether or not it needs to be changed, we could reduce that to a single const action for the creep's lifetime, which I feel would be a good start.</p>]]></description><link>http://screeps.com/forum/post/2835</link><guid isPermaLink="true">http://screeps.com/forum/post/2835</guid><dc:creator><![CDATA[WarInternal]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to notifyWhenAttacked(enabled) should not be const (0.2 CPU) on Invalid Date]]></title><description><![CDATA[<p>The proposal to add this as a parameter to Spawn.createCreep would have a net reduction of impact upon the server performance in all static cases, and would be beneficial.</p>]]></description><link>http://screeps.com/forum/post/2836</link><guid isPermaLink="true">http://screeps.com/forum/post/2836</guid><dc:creator><![CDATA[Prime]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to notifyWhenAttacked(enabled) should not be const (0.2 CPU) on Invalid Date]]></title><description><![CDATA[<p>Prime's solution is the cleanest imho.</p>]]></description><link>http://screeps.com/forum/post/2837</link><guid isPermaLink="true">http://screeps.com/forum/post/2837</guid><dc:creator><![CDATA[Atavus]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>