early-access version 4021

This commit is contained in:
pineappleEA
2023-12-15 06:40:33 +01:00
parent ba87c29152
commit 41343d3db3
30 changed files with 66 additions and 56 deletions

View File

@@ -29,6 +29,8 @@ RasterizerAccelerated::RasterizerAccelerated(Memory& cpu_memory_) : map{}, cpu_m
RasterizerAccelerated::~RasterizerAccelerated() = default;
void RasterizerAccelerated::UpdatePagesCachedCount(VAddr addr, u64 size, bool cache) {
std::scoped_lock lk{map_lock};
// Align sizes.
addr = Common::AlignDown(addr, YUZU_PAGESIZE);
size = Common::AlignUp(size, YUZU_PAGESIZE);

View File

@@ -3,6 +3,7 @@
#pragma once
#include <mutex>
#include <boost/icl/interval_map.hpp>
#include "common/common_types.h"
@@ -30,6 +31,7 @@ private:
using IntervalType = IntervalMap::interval_type;
IntervalMap map;
std::mutex map_lock;
Core::Memory::Memory& cpu_memory;
};

View File

@@ -289,7 +289,7 @@ void PresentManager::PresentThread(std::stop_token token) {
void PresentManager::RecreateSwapchain(Frame* frame) {
swapchain.Create(*surface, frame->width, frame->height);
image_count = swapchain.GetImageCount();
SetImageCount();
}
void PresentManager::SetImageCount() {