Skip to content

CPU at 100% in menu in Vulkan on Linux #19131

Closed

Description

@hrydgard

As it says on the tin.

Reported to happen on NVIDIA by KickMeElmo on the discord.

Activity

  1. added this to the v1.18.0 milestone on May 11, 2024
  2. foxsevent commented on May 11, 2024

    @foxsevent

    Small clarification, it's not just in menus but everywhere at all times with the Vulcan backend, menus and games, a CPU core is being pushed to 100%, which core it is can switch while running.
    This is on Steam Deck Linux AMD APU.
    https://ibb.co/58wN3Xy
    https://ibb.co/8jzJRhv

  3. PhantomX commented on May 26, 2024

    @PhantomX
  4. hrydgard commented on May 26, 2024

    @hrydgard
    OwnerAuthor

    Thanks, that's interesting!

  5. hrydgard commented on May 28, 2024

    @hrydgard
    OwnerAuthor

    Hm, in my testing, I'm seeing 100% CPU in commits before that one. I'll bisect myself (maybe it's a different cause..)

  6. hrydgard commented on May 28, 2024

    @hrydgard
    OwnerAuthor

    Alright, I've figured this out as far as I can tell. When I switched the SDL build to run independently of the message pump in Vulkan mode, I forgot to switch from SDL_PollEvent to SDL_WaitEvent. So without being throttled by rendering, it'll just spin.

    There seems to be some differences in behavior to iron out but once that's done, this will be fixed.

    The starting commit mentioned by PhantomX above doesn't seem to have anything to do with it..

  7. added a commit that references this issue on May 28, 2024
    2c50f82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions