Mouse / Kbd disturbance?

About Monkey 2 Forums Monkey 2 Programming Help Mouse / Kbd disturbance?

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  abakobo 1 year, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12636

    PhatPeter
    Participant

    Anyone else get disturbance when you move the mouse or hit the keyboard in your programs?

    You need to do something that pushes your machine at least a few % to be able to see it, try this example I include for example. It might be so that it gives different results on different platforms actually. But I’ve seen in on Windows and macOS so far (I don’t have a kbd on my Android so I haven’t been able to try it out). But on some platforms, it does slow down your app.

    #12668

    abakobo
    Participant

    If you reach to computer limit, it’s normal that adding inputs, thus listeners calling their callback functions, will slow down the computer somehow. On my computer the code runs at 31 FPS so it’s crawling anyway!
    Again you are using a lot of canvases. this is bad practice…
    And you don’t need to Flush the main canvas at the end of OnRender, it’s done automatically. Canvas.Flush() is a greedy call, avoid it too..

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.