Skip to content

Why does using a PinnedTask cause severe lag? #144

@vkensou

Description

@vkensou

In my main loop I have five tasks:
RootTask -> UpdateTask -> RenderTask -> ImGuiUpdateTask
SubmitTask

I changed ImGuiUpdateTask to an IPinnedTask and bound it to thread 0, but this caused a significant drop in frame rate. According to the profiler, the taskScheduler seems to be waiting on something, while CPU usage has increased a lot. My CPU is an Intel(R) Core(TM) i7-14700K, running Windows 10.

What should I do?

https://github.com/vkensou/PulseEngine/blob/13b7fd6fd8510600bb02283c9d9fec3a0d025217/src/rgframework/src/framework_singlewindow.cpp#L908

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions