mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 20:04:31 +01:00
Secondary outputs, and --game-window on Mac to show the game in a second window
The ScreenManager keeps a list of secondary outputs, each with its own swapchain, recreated after a lost device. Platform code adds, resizes and removes them from any thread through Native_AddOutput() and friends, which take effect at the start of the next frame. Each frame, every output is drawn by the topmost screen that claims it (Screen::renderOutput). EmuScreen claims Game outputs: it presents the game there, laid out for that output, and leaves it out of the backbuffer, where the touch controls and the menus stay. Not in non-buffered mode, which draws straight into the backbuffer. --game-window opens such an output on Mac, with Metal. It's a smoke test for multiple swapchains, and a stand-in for an AirPlay display. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
56c76ace35
commit
d491fc90cf
17 files changed
+323
-8
No files matched your search
@@ -720,6 +720,12 @@ bool SoftGPU::PresentedThisFrame() const {
|
||||
return presentation_ ? presentation_->PresentedThisFrame() : false;
|
||||
}
|
||||
|
||||
void SoftGPU::SetPresentationOutput(const OutputParams *output) {
|
||||
if (presentation_) {
|
||||
presentation_->SetOutputOverride(output);
|
||||
}
|
||||
}
|
||||
|
||||
void SoftGPU::MarkDirty(uint32_t addr, uint32_t stride, uint32_t height, GEBufferFormat fmt, SoftGPUVRAMDirty value) {
|
||||
uint32_t bytes = height * stride * (fmt == GE_FORMAT_8888 ? 4 : 2);
|
||||
MarkDirty(addr, bytes, value);
|
||||
|
||||
Reference in new issue
Block a user