pumpitupdev / pumptools

A collection of tools to run Pump It Up games.
The Unlicense
22 stars 7 forks source link

High Cpu Usage in Piu Exceed 2 and Piu Zero #35

Closed voidderef closed 3 years ago

voidderef commented 3 years ago

In GitLab by @hiryu69 on Jun 29, 2021, 21:32

Summary

High Cpu Usage in Exceed 2 and piu Zero, only in songs that uses "videos" as bg

Expected behavior

run as moderate cpu usage, like other pius (nx,nx2,nxa etc..)

Current behavior

when i select a song that uses a video bg, the cpu usage increases,and the gameplay is choppy

Detailed Description

when i select a song that uses a video gb, the cpu usage increases,and the gameplay is choppy, in other song that uses dat animations the games runs fine, this not happen in recent piu version, like NX,NX2 etc, even the piu pro, and pro 2 runs fine in HD

Steps to reproduce

1.Just run piu exceed 2 o zero 2.compare cpu usage with other new piu 3. 4.

Further things tested

Possible solution

Context (Environment)

Pumptools version(s) affected

*All Current Pumptools that support Ex2 and Zero

Game(s) and version(s) affected

*Exceed 2 and piu zero

Command line arguments

sudo ./piueb run

APIs used

*mk6 io and keyboard

OS version

XUbuntu 20.04.02

Hardware specs

*Attached 2 pictures to compare cpu usage in piu zero and piu Nxa with the same song nxa zero1

voidderef commented 3 years ago

In GitLab by @hiryu69 on Jun 29, 2021, 21:33

changed the description

voidderef commented 3 years ago

In GitLab by @icex2 on Jul 2, 2021, 23:28

I am missing a lot of important information:

Please provide this as the above is essential if we are talking about performance issues.

voidderef commented 3 years ago

In GitLab by @hiryu69 on Jul 3, 2021, 02:13

changed the description

voidderef commented 3 years ago

In GitLab by @hiryu69 on Jul 3, 2021, 02:15

ups sorry, i hope to upload the missing logs this weekend

voidderef commented 3 years ago

In GitLab by @hiryu69 on Jul 4, 2021, 21:27

changed the description

voidderef commented 3 years ago

In GitLab by @hiryu69 on Jul 4, 2021, 21:28

attach logs, and updated the hardware specs on first post piueb.log pumptools.log

voidderef commented 3 years ago

In GitLab by @icex2 on Jul 5, 2021, 22:39

Interesting choice of hardware. Is it one of these CPU solder to motherboard units? For the CPU, Google shows me mainly combined units by Gigabyte. I also don't have any experience with Intel GPUs though they should be fine performance-wise (considering units of the last couple of years).

The symptoms you describe and the screenshots with top might point towards GPU issues. The videos might be decoded and rendered entirely in software slowing down the game.

Which GPU drivers are installed? Can you run glxinfo &> glxinfo.info and upload the output file glxinfo.info here?

Newer games than Zero might be doing well because the game engine improved in regards of performance especially if it comes to threading.

voidderef commented 3 years ago

In GitLab by @hiryu69 on Jul 6, 2021, 01:00

yes the cpu is solder on the motherboard,and there is the glxinfo glxinfo.info

voidderef commented 3 years ago

In GitLab by @icex2 on Jul 6, 2021, 23:09

Thanks for the glxinfo excerpt. I don't think this makes a lot of sense since newer games are running just fine and only some old games are struggling, but let's give this a shot nevertheless:

glxinfo shows that you only have the mesa drivers installed. We are talking about pump which is not that resource demanding and I can't imagine the drivers being an issue. However, please install Intel graphics specific drivers, e.g. have a look here for instructions and let me know if that changes anything.

If that doesn't help, I suspect that the sigalarm handler patch for the old games is not very efficient on low spec (?) CPUs like yours. The current implementation simply pulls this to the main thread which is doing the job but might not be a very efficient way to utilize low spec CPUs. Not sure if a threaded solution is helping here or even feasible. Just taking some notes here for later reference.

voidderef commented 3 years ago

In GitLab by @hiryu69 on Jul 9, 2021, 20:58

ok i tried to follow the instuctions for install the intel drivers and the system says is already installed,so i think is how the hook manage these games,theres is not much problem,i only want to know if this problem was a bug or a issue with these games.

voidderef commented 3 years ago

In GitLab by @icex2 on Jul 10, 2021, 23:31

So far I cannot tell you if this is a bug or expected behavior. Furthermore, you won't be able to run these games without pumptools on recent kernel versions due to various bugs that pumptools fixes.

Since you already tested this with the MK6 IO, the IO emulation is likely not the issue.

However, as mentioned in my last reply, the symptoms you described might be triggered by how pumptools implements these kernel fixes you need. I would check if I can come up with an alternative way to implement these fixes which might consider the CPU load issue you pointed out.

As a short term solution for you: If you want to play x2 and zero without the stuttering issues, you might want to look into alternative hardware with a focus on the CPU. Decent single threading performance might be what you are looking for. I am running things on some 7 year old Intel i3 CPU just fine.

voidderef commented 3 years ago

In GitLab by @hiryu69 on Jul 15, 2021, 01:32

hemm.. i dont know how to explain this, but i connected my setup to internet, ubuntu ask me about some updates, updated, reboot, testing Zero and....now works fine! cpu usage is about to 60% to 70% and now Exc2 and Zero runs smoothly.

voidderef commented 3 years ago

In GitLab by @icex2 on Jul 15, 2021, 16:34

That's odd that an update + reboot solved this. I consider this issue resolved.