Game.cpu.generatePixel change



  • I got to know about this change by coincidence on slack #general, a week after it was already live. It didn't break my code, so I didn't catch it - but only because I usually use just half of my cpu per tick.

    I believe generating pixel should be easy, the 2 liner to generate them is even in the api documentation to make it easy for everyone. An easy way to use wasted cpu is an incentive to waste less cpu. It has been a very welcoming feature for non-optimized users, because a good bot would use all cpu to create more energy or credits. A less advanced bot just has much cpu to waste and can generate pixel easily by wasting less cpu.

    I believe there are also not too many pixel. If you try to collect golden decorations, you'll need to spend a lot of pixel. At 13th November I created 312 decorations and got zero golden decorations.

    If creating pixel is challenging, then less people care about them at all, leading to the old behaviour to use as much as possible from your cpu with mostly unnecessary calculations. A good example in my humble code base of the optimizations I did after the pixel feature came out:

    1. towers scan the room only every 41 ticks for damaged structures
    2. market code runs only every 11 ticks instead of every tick.
    3. use more reusePath instead of recalculating each path every tick, saves also something.
    4. collecting room statistics and market statistics every minute instead of every tick.
    5. disable logging HTML room statistics while I'm offline.
    6. disable map visuals and room visuals while i'm offline.
    7. sharing energy across rooms by terminal every 32 ticks instead of every tick.
    8. more would be possible, but with over 100 cpu saved per tick it has been already enough.

    Without the pixel feature, I would still run unoptimized code and I think many other players also optimized their code to create more pixel. No need to make this feature more challenging, it's ok to be an non-challenging incentive for optimization.

    👆👍


  • I'd argue that incentive is still there, it's just a little harder to make use of.

    All you really have to do is make sure that you don't exceed your CPU allocation on the tick you run generatePixel or the following tick where you've got hardly any bucket.

    Most optimisations tend to be done by remaining bucket amount, which mostly works ok if like most new players you're well under your CPU allocation on almost every tick. To completely avoid resetting yourself you'll need to do a bit of work to check against Game.cpu.getUsed() as well.



  • Oh for goodness' sake guys. Having accounted for the change you announced, and prepared some days in advance, I come back here after seeing errors I couldn't explain (lost ticks), to find that you made a different change and didn't start a new announcement. Lucky this is a game and not something that actually matters...

    👆


  • @artch It looks like not all the documentation has been updated.

    PIXEL_CPU_COST = 10000
    https://docs.screeps.com/api/#Game.cpu.generatePixel shows 10000

    However, in the game web client. The intellisense in the console is still out of date. Typing Game.cpu.generateP into the Console brings up an intellisense completion which reads:

    fn() -> number
    Generate 1 pixel resource unit for 5000 CPU from your bucket.
    
    CPU cost: HIGH
    
    👍

  • Banned

    @artch said in Game.cpu.generatePixel change:

    Since emotions are settled down finally, I'm opening the thread again, and moving some relevant posts here to keep it in one place. Please remember to be respectful and stick to the constructive discussion without getting personal, offending and accusations.

    https://www.youtube.com/embed/AZnTIP9FRdI?start=00&end=22

    👎🤡🙄


  • Why would I need an apology? He never got combative, just... not great communication about the desired outcome.


  • Banned

    @cribbit the second biggest "fuck you" @artch gave was to you personally:

    @artch said in Game.cpu.generatePixel change:

    @cribbit Please let's don't play words and spam pointless discussions here. It's obvious enough what was meant.

    You raised a valid point, and in response @artch raised a middle finger.

    🤡


  • @tdxtor Keep my name out of your mouth. Thanks.



  • No need to appologize, this is not kidergarden. It's a discussion between adult men aware of a language barrier between them. I believe mutual respect was there most of the way, we all are trying to make things better. Lets use this as an opportinuty to make things better in the future.

    This change was meant to be small and non-invasive, but as it turns out it broke some stuff for some people, and, well, if you break a hobby project of another person, they might understandably get frustrated.

    I do believe that this project is, whether it was intended or not, more like a "bank" than it was planned to be. Community expects a higher stability level than the developers provide, we can see it quite frequently now and it's becoming a little bit of a consistent pattern. At the same time, I can fully understand that the devs are afraid of a rigid procedure set involved with a highly stable platform as their efforts to grow the game are already sluggish due to very small team and a massive chunk of codebase (which is a different frustration of the community - but that's a story for another day).

    The perspective that seems to be missing though is that those two goals are not mutually exclusive - in fact if this is done well, then the development throughput should increase (slightly in the worst case and quite massively in the best case (if crowdsourcing kicks in)). Devs are not experienced in this area, it seems, so discussing it and showing perspectives to each other seems to be the way to go. I was upset personally when the thread was locked, but once I realized the lock was temporary, it actually made a lot of sense. And it worked. I was wrong.


  • Banned

    @crazydubc I'd love to, but @artch still hasn't apologized and has to be taken to task. Soon enough I'll never have to bring it up again. Sorry to have dragged you into this.


  • Banned

    @rhef It's not a discussion of peers or anything, it's a discussion between a person whose job title is "communicating effectively and professionally with customers" and said customers. I also feel like if it was a discussion between adults, an apology wouldn't be so hard to coax out of @artch


  • Dev Team

    @rhef I appreciate your efforts and engagement in this situation, and also mature attitude in keeping this conversation within boundaries.

    Still, it seems you're very new to Screeps. I don't mean to insult you with this, it just means you are not informed enough. I'd like to encourage you to research our previous efforts in crowdfunding (Screeps was crowdfunded from the very beginning), crowdsourcing (many features in Screeps were not only proposed, but implemented by the community) and community interaction. Just ask some veteran Screeps players on Slack, or dig through this forum a bit, and you will see that we are very committed to everything you're saying here. And even while being not a bank, we used extensive procedures of engaging community into drafting, discussing, and testing everything all the way during past 5 years.

    In all modesty, I'm confident enough to say that we have enough experience with these things to clearly see both pros and cons for every approach we choose in different circumstances.

    And again, I have to repeat, this generatePixel situation is a bit unique due to many factors. This is not how we usually handle things, and I don't think such combination of factors will happen again in the near future.

    That being said, once you get yourself familiar with our previous efforts and their results, we will happily listen to any idea how things can be improved in the future, and are open to any constructive discussion.

    💅👍

  • Banned

    @artch said in Game.cpu.generatePixel change:

    Since emotions are settled down finally, I'm opening the thread again, and moving some relevant posts here to keep it in one place. Please remember to be respectful and stick to the constructive discussion without getting personal, offending and accusations.

    Glad to hear it. Since you've had time to cool off and compose yourself, are you ready to apologize to @Rhef @cribbit and @CrAzYDubC now?



  • Bro, please, let it go. Chill. It's enough. You've made your point.

    👍

  • Dev Team

    @rhef Please just ignore him. The more attention he receives, the more flood we will get on the forum. He already posted this in 4 other threads and even submitted a Steam review seeking as much attention as possible.

    👍

  • Banned

    @rhef I'm glad to hear it, but it seems like it's still not getting through to @artch


  • Banned

    @artch The longer you take to apologize to the customers you are supposed to be helping, not abusing, the more replies I will have to post. It'll all be over as soon as you take your job seriously.



  • @tdxtor You are aware that out of whole community (at least active one in this thread) You're a single one person who is interested and continues the drama You started ?

    Everything what was to be said/written was said/written and Your unfulfilled need to be on-top / winner / apologized to ain't gonna happen and it will probabbly end with You getting banned in forums or anywhere else that you'll post Your spam...


  • Banned

    @gadjung I'm not asking for @artch to apologize to me, I'm asking him to apologize to the customers he insulted in this thread. Since I'm sinking to the same level as @artch I definitely wouldn't expect an apology now even if I had before. It's important to the health of the game that we continue to be able to bring in new players as old players leave, and to do that we need to make sure that they will have positive interactions with the devs (particularly any whose position is explicitly to provide professional and effective communication). If we as a community let this slide, we are saying it is okay for screeps employees to treat people that way, and hurt the whole community by costing us players, which in turn costs us unique interactions, fresh viewpoints, and potential enjoyment of the game.

    🤡

  • Dev Team

    @tdxtor OK, I'm giving you the final warning: stop flooding this thread with off-topic. If you want to discuss developers-community interaction, start a new thread. This thread is about the generatePixel change, and any new post about this drama of yours will be considered flood and deleted. If repeated, there will a ban on the forum for 10 days.

    PS I'm not an "employee" at Screeps. The community manager is another guy.

    😆👆👍