Skip to content

Improve performance - There is a working method #140

@hl2mp

Description

@hl2mp

Transfer the render to the render thread, and change the camera via the shader API when sending it to the command list.

MainThread

  • RenderView change camera origin angles

RenderThread
Hooking functions in shaderapidx9.dll

  • MatrixMode(MATERIAL_VIEW)
  • LoadMatrix(change camera correct only angles)

D3D9 functions
Present()
{
Submit
WaitGetPoses
}

mat_queue_mode 2 will work correctly

I did this in my mod for hl2dm VR.

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