xemu
xemu copied to clipboard
[Regression] Harry Potter and the Chamber of Secrets: Performance slowdown
Title
https://xemu.app/titles/4541000e/#Harry-Potter-and-the-Chamber-of-Secrets
EA-014 [4541000e]
Bug Description
Framerate sticks at around 5-10 FPS throughout the game at rendering scale 1x (drops even further at higher scales).
Steps to riproduce the issue:
- Open Xemu Emulator
- Load the game
- Reset emulator
- Let the game load to Main Menu (or skip intro video)
- Press "New Game" and select any save slot
- After the loading screen, the intro cutscene plays at a sluggish pace

Expected Behavior
Despite gameplay was not flawless before, the game ran at an average of 30 FPS with peaks at 60 FPS.

xemu Version
v0.6.0 build-202107262358
Last working: v0.5.4-29-g0b9a2e1a8f build-202107190558
System Information
OS: Windows 10 Pro 64bit CPU: Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz GPU: NVIDIA GeForce GTX 1650 GPU Driver: 471.41
Additional Context
No response
I'll be taking a look at this shortly.
Performance seems to be much better now.
Version: 0.6.2-64-g758e36d398
Branch: master
Commit: 758e36d3983f3acde38017276f31bb75ff32a92a
Date: Wed Feb 2 08:08:22 UTC 2022

It seems fixed from my testing as well.
Tested it again recently the frames are a little too low
This happened in the most recent version which is v0.7.58 and the previous version v0.7.42
I tested all versions of xemu recently this Month, I started from version 6.2 since the game was fixed in that version, from version 6.2 to 7.8 the game was working fine at a average 60 fps and 6-10 mspf, the performance went down after version 7.9, the performance regression continued from version 7.9 to version 7.66 which is the current version. The game ran at the range of 15-30 fps with some peaks at 40-41-42, the frames bounce around a bit depending on the resources of the game, some versions had a peak of just 40 fps, I have attached a screenshot where you can see how I was able to get peak fps.

The save I used to test was bourgin and borkes level, moving around the game worked at around 15-30 above fps depending on the resources, I stood in a corner where resources are a little low was that way I was able to conclude with the peak fps.
The only version which was a exception 7.63, the game become unplayable.
@vawtg "performance regression continued from version 7.9 (https://github.com/mborgerson/xemu/pull/879) to version 7.66" https://github.com/mborgerson/xemu/issues/1192
the performance is fine from version 6.2 to 7.8
7,9 was where the performance regression started @deepdive93
Hello, about this game, I have several issues:
-
graphic gliches

-
first cinematic run very slowly with audio desync
my config: https://gist.github.com/legluondunet/8c353105c386d1a121041a3ad1b4a2b4
xemu_version: 0.7.72
xemu_branch: a0cffd77debf6caf8804a0fbb2d04fb9c54c13a6
xemu_commit: a0cffd77debf6caf8804a0fbb2d04fb9c54c13a6
xemu_date: Sat Jan 7 10:51:01 AM UTC 2023
xemu_settings_get_base_path: base path: /home/legluondunet/.var/app/app.xemu.xemu/data/xemu/xemu/
xemu_settings_get_path: config path: /home/legluondunet/.var/app/app.xemu.xemu/data/xemu/xemu/xemu.toml
CPU: AMD Ryzen 9 5900HX with Radeon Graphics
OS_Version: Freedesktop.org SDK 22.08 (Flatpak runtime)
GL_VENDOR: AMD
GL_RENDERER: AMD Radeon RX 6600M (navi23, LLVM 14.0.6, DRM 3.49, 6.1.1-1-MANJARO)
GL_VERSION: 4.6 (Core Profile) Mesa 22.2.4 (git-80d
```f10f902)
GL_SHADING_LANGUAGE_VERSION: 4.60
anyone managed to find a fix for low FPS?
I can't seem to reproduce on my end. Performance in the initial few seconds of the opening cutscene drops to around 40-50fps, but then the rest of the game seems smooth.

Version: 0.7.85 Branch: master Commit: 065c74a00fe402f65147e9b0d1a1eeac1b4b609f Date: Mon Mar 6 21:06:28 UTC 2023
CPU: AMD Ryzen 7 5800X 8-Core Processor
OS Platform: Windows
OS Version: Windows
Manufacturer: NVIDIA Corporation
GPU Model: NVIDIA GeForce RTX 3080/PCIe/SSE2
Driver: 4.0.0 NVIDIA 531.29
Shader: 4.00 NVIDIA via Cg compiler
From my side, I just tested with Xemu Version 0.7.85, nothing had changed. @ehw could you test this game Xemu with a AMD GPU? Under Linux?