wheremyfoodat/Panda3DS

Artifact, on open in linux without ROM

Opened this issue · 17 comments

OS: LinuxMint 21.1
Kernel: 5.15.0-76-generic

image

How did you install this? Maybe try compiling from source?

Builded from source

Does it work if you load a ROM eg Ocarina of Time? What's your GPU?

in the precompiled version, it doesn't even display the window.

Yeah the precompiled builds aren't really portable because shipping software on Linux is not a fun experience

Potentially fixed in #259?

Not resolved.

image

image

Could you try loading a ROM? Also please post your specs and any important information if possible.

My system:

image

I will test Zelda Ocarina, and return with a feedback

Thanks!

did error:

image

Unhandled SIGSEGV at rip 0x00007f62d19a9c9d Falha de segmentação (imagem do núcleo gravada)

Uh that's bad. Does this ROM run on Citra?

too crash in recent citra version, i go to check the rom file.

It's working.

The artifact is caused because is not none rendering in moment, on edit code in emulator.cpp:


void Emulator::runFrame() {
	if (running) {
		cpu.runFrame(); // Run 1 frame of instructions
		gpu.display();  // Display graphics

		// Send VBlank interrupts
		ServiceManager& srv = kernel.getServiceManager();
		srv.sendGPUInterrupt(GPUInterrupt::VBlank0);
		srv.sendGPUInterrupt(GPUInterrupt::VBlank1);

		// Run cheats if any are loaded
		if (cheats.haveCheats()) [[unlikely]] {
			cheats.run();
		}
	} else if (romType != ROMType::None) {
		// If the emulator is not running and a game is loaded, we still want to display the framebuffer otherwise we will get weird
		// double-buffering issues
		gpu.display();
	}
}


removing the if (romType != ROMType::None)


} else {
		// If the emulator is not running and a game is loaded, we still want to display the framebuffer otherwise we will get weird
		// double-buffering issues
		gpu.display();
	}

The artifact fades aways.

OK then I am likely forgetting to clear a texture somewhere. I'll check it out.
Though thankfully the emu still works itself.