Silk.NET icon indicating copy to clipboard operation
Silk.NET copied to clipboard

High CPU Usage when checking Joysticks and Gamepads

Open Vercidium opened this issue 2 years ago • 0 comments

Summary

I've set up a bare-bones project using Silk.NET that uses OpenGL to render a texture to the screen.

I then ran a profiler and found it's checking for JoystickPresent and GetGamepadState every single frame.

I don't use a Joystick or Gamepad, can I disable these checks?

image

Steps to reproduce

  • Platform: Desktop

  • Framework Version: .NET 7

  • API: OpenGL

  • API Version: OpenGL 3.3

  • Create a window

  • Call window.Run()

Vercidium avatar Dec 21 '23 20:12 Vercidium