mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 02:00:14 +02:00
Refactor stereo frame worker and interpolation tests for enhanced VR performance
- Updated stereo_frame_worker_smoke.cpp to allow dynamic headset rates and prediction lead time. - Improved logging to include motion diagnostics and adjusted frame submission logic based on headset frequency. - Enhanced stereo_interpolation_test.cpp with additional tests for camera motion separation and playback cadence. - Introduced MkwVRReadSceneView function to read the camera view matrix for improved scene rendering. - Modified VR first-person logic to support scene view reading and validation. - Added scene_camera.hpp to encapsulate camera motion handling and inverse view calculations. - Ensured that the VR integration layer correctly logs motion diagnostics and handles scene playback accurately.
This commit is contained in:
1 parent
85fab2fa09
commit
e7eab8a6b2
19 files changed
+1978
-114
No files matched your search
@@ -197,7 +197,8 @@ typedef struct {
|
||||
AuroraStereoFrameMode mode;
|
||||
uint64_t contentTag;
|
||||
// Predicted display time converted to std::chrono::steady_clock nanoseconds.
|
||||
// Zero disables temporal interpolation for this packet.
|
||||
// Used for diagnostics. Scene playback has its own clock; the eye poses remain
|
||||
// predicted for this time even when the runtime looks several game frames ahead.
|
||||
uint64_t displayTimeNanos;
|
||||
// Optional; inactive when zero-initialised.
|
||||
AuroraCockpit cockpit;
|
||||
@@ -334,6 +335,10 @@ void aurora_set_stereo_scene_anchor(const float anchorFromScene[12]);
|
||||
// The sealed frame then owns that scale: each eye's head/IPD translation is
|
||||
// rescaled from the packet's AuroraCockpit::unitsPerMeter to it.
|
||||
void aurora_set_stereo_scene_anchor_scaled(const float anchorFromScene[12], float unitsPerMeter);
|
||||
|
||||
// Recorded world-to-view camera, copied on the GX thread beside the scene anchor.
|
||||
// Null disables camera-separated interpolation for this frame.
|
||||
void aurora_set_stereo_scene_view(const float viewFromWorld[12]);
|
||||
// GX producer thread, after the scene anchor and before sealing that frame.
|
||||
void aurora_set_stereo_cockpit_item(const AuroraCockpitItem* item);
|
||||
// Copies a user-supplied Race/Common.szs archive. May be called on the guest
|
||||
|
||||
Reference in new issue
Block a user