[Scummvm-git-logs] scummvm master -> aad4813c6d4c731eca2c21851b8a3ee7d062c2e0
whoozle
noreply at scummvm.org
Thu Mar 12 20:53:09 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
aad4813c6d PHOENIXVR: slightly localised hint code and remove multiplication from the very hot vr path
Commit: aad4813c6d4c731eca2c21851b8a3ee7d062c2e0
https://github.com/scummvm/scummvm/commit/aad4813c6d4c731eca2c21851b8a3ee7d062c2e0
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-03-12T20:52:13Z
Commit Message:
PHOENIXVR: slightly localised hint code and remove multiplication from the very hot vr path
Changed paths:
engines/phoenixvr/vr.cpp
diff --git a/engines/phoenixvr/vr.cpp b/engines/phoenixvr/vr.cpp
index 10f427b8198..1d48c2ee599 100644
--- a/engines/phoenixvr/vr.cpp
+++ b/engines/phoenixvr/vr.cpp
@@ -486,14 +486,14 @@ void VR::renderVR(Graphics::Screen *screen, float ax, float ay, float fov, float
auto cube = toCube(ray.x(), ray.y(), ray.z());
int srcX = static_cast<int>(512 * cube.x);
int srcY = static_cast<int>(512 * cube.y);
- int tileId = cube.faceIdx * 4;
+ int tileId = cube.faceIdx << 2;
tileId += (srcY < 256) ? (srcX < 256 ? 0 : 1) : (srcX < 256 ? 3 : 2);
srcX &= 0xff;
srcY &= 0xff;
srcY += (tileId << 8);
auto color = _pic->getPixel(srcX, srcY);
- int x = 0;
if (regSet) {
+ int x = 0;
regX += regDX;
if (regX >= kTau)
regX -= kTau;
@@ -508,8 +508,9 @@ void VR::renderVR(Graphics::Screen *screen, float ax, float ay, float fov, float
x = 0;
else if (dstX + x >= screen->w)
x = screen->w - 1 - dstX;
- }
- dst[x] = color;
+ dst[x] = color;
+ } else
+ *dst = color;
}
if (regSet) {
regY += regDY;
More information about the Scummvm-git-logs
mailing list