mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
Skip unused global motion reduction sums
This commit is contained in:
1 parent
4352645f3c
commit
300ed8061f
1 file changed
+2
-2
@@ -229,10 +229,10 @@ bool FrameGen::updateGlobalMotion(uint32_t gmSlot, VkExtent2D fullExtent) {
|
||||
bool good = false;
|
||||
if (gmSlotValid_[gmSlot]) {
|
||||
const float* pt = (const float*)gmSsboPtr_[gmSlot];
|
||||
double sums[32]; for (int k = 0; k < 32; ++k) sums[k] = 0.0;
|
||||
double sums[28]{};
|
||||
for (int t = 0; t < kGmThreads; ++t) {
|
||||
const float* row = pt + (size_t)t * kGmStride;
|
||||
for (int k = 0; k < kGmStride; ++k) sums[k] += (double)row[k];
|
||||
for (int k = 0; k < 28; ++k) sums[k] += (double)row[k];
|
||||
}
|
||||
double coverage = sums[27];
|
||||
double lvlpx = double((fullExtent.width >> kGmLevel) * (fullExtent.height >> kGmLevel));
|
||||
|
||||
Reference in new issue
Block a user