Skip to content

how to awake the renderloop when using GLFW.WaitEvents() #186

@FaresX

Description

@FaresX

I'm trying to use GLFW.PostEmptyEvent() to trigger the rendering. But when blocked by GLFW.WaitEvents(), it fails to awake the window by other function and only responds to a physical event (mouse or keyboard). For example, this code has no effect

@async while GLFW.WindowShouldClose(CImGui.current_window()) == 0
    GLFW.PostEmptyEvent()
    sleep(0.01)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions