BramTeurlings / 3DGameBridge

Wrapper Project for easy implementation of function in any 3D Game Bridge project
GNU General Public License v3.0
2 stars 1 forks source link

[GB-197] Implement new latency implementation #54

Closed BramTeurlings closed 8 months ago

BramTeurlings commented 8 months ago

I found out that we can get the amount of buffers in the swap_chain from ReShade.

The default latency value set by the SR SDK for the predictingEyeTracker is 40000 microseconds.

The call to get the amount of back buffers is:
``weaver->setLatencyInFrames(runtime->get_back_buffer_count() ? runtime->get_back_buffer_count() : 1); // Set the latency with which the weaver should do prediction.``


Originally reported by , imported from: Implement new latency implementation
  • assignee:
  • status: Done
  • priority: Medium
  • resolution: Complete
  • resolved: 2024-01-22T01:23:28-08:00
  • imported: 2024-04-04
BramTeurlings commented 8 months ago

Subtask of parent task GB-190

BramTeurlings commented 8 months ago

712020:c26664a4-c3de-4473-a0b4-5a76804d5628:

Merge request: https://github.com/JoeyAnthony/3DGameBridgeProjects/pull/9

BramTeurlings commented 8 months ago

712020:c26664a4-c3de-4473-a0b4-5a76804d5628:

Added new latency switch and cleaned code.

BramTeurlings commented 8 months ago

712020:f91dd24e-5296-4a9d-90d9-b287c639e252:

Reviewed and looks nice

BramTeurlings commented 8 months ago

712020:f91dd24e-5296-4a9d-90d9-b287c639e252:

Works in games, latency switches nicely

BramTeurlings commented 6 months ago

[Epic: srReshade addon]