Multi-Click Bug??????

  • Superior410
    30th Jan 2021 Member 0 Permalink

    I had just installed powder toy again after a few years and I noticed the next day that powder.exe had disappeared from my windows quick search. I thought nothing about it so I reinstalled the exe again. Once I had opened it I noticed that I have to click over 6 times to switch my elements or view maps. I reinstalled the app again and I think it's made it worse. The game is really really really fun but it's this bug really ruins the fun for me. Any help?

  • jacob1
    31st Jan 2021 Developer 0 Permalink
    That sounds really unusual and I've never seen anything like that before.

    While I was updating TPT to SDL2, I do believe I noticed a bug where the first click when the window was unfocused didn't work. I don't remember any more details (like how I fixed it, or under what conditions it happened). 6 times should never be required, as long as the TPT window has focus, drawing will work.

    Does the TPT window gain focus when you click it? Also, what OS are you on?
  • Superior410
    31st Jan 2021 Member 0 Permalink

    I have checked to see if the window was unfocused by clicking off of TPT and back on, and it was indeed focused. I am on Windows 10 Home.

     

    Edit: I noticed that it seems like the mouse has a delay in TPT, it registers the click but only confirms my selection a few seconds after, so maybe the multi-click bug is a mouse delay? 

     

    Edit again: The keystroke is only delayed when I left click. It seems to work perfectly fine once my mouse is moving. The right click secondary option works perfectly fine too: I will provide proof through a website called "Gyazo" if you do not feel safe clicking this link that is okay, I will gladly remove it; https://gyazo.com/391324259a3ef436419ff21c4c78d703

     

    Edited 2 times by Superior410. Last: 31st Jan 2021
  • jacob1
    1st Feb 2021 Developer 0 Permalink
    @Superior410 (View Post)
    hmm, I don't see anything unusual in your gif. It is helpful to see that, but, I just don't see anything wrong. The mouse lines up with the brush, and the brush lines up with the drawn elements. There might be an illusion of lag, because the elements start moving after a few frames.
    At lower framerates, there is significant lag between the mouse position and in-game cursor, because the in-game cursor only updates position once a frame (even when the framerate is low). But your gif is nearly 60fps so that isn't the problem here.

    It's also possible that you weren't able to capture the issue in the gif due to the nature of the problem.



    As for your click issue, if the window focuses right away, then the mouse should start working right away. Maybe some other program is interfering, I don't know.
  • Superior410
    2nd Feb 2021 Member 0 Permalink

    Yeah probs just something interfering with it, thank you for helping though!

     

    Edit: Just opened TPT up and wouldn't you know it; it's fixed! 

    Edited once by Superior410. Last: 2nd Feb 2021