Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slowdowns with Aëdemphia v9.90 #2842

Open
BlisterB opened this issue Sep 4, 2022 · 6 comments
Open

Slowdowns with Aëdemphia v9.90 #2842

BlisterB opened this issue Sep 4, 2022 · 6 comments
Labels
Performance Related to improvements on memory, less CPU or disk usage, battery savings, etc.
Milestone

Comments

@BlisterB
Copy link
Member

BlisterB commented Sep 4, 2022

Name of the game: Aëdemphia

Player platform: Windows

Attach files (as a .zip archive or link them)
https://www.aedemphia-rpg.net/download/Aedemphia%20Steam.rar
easyrpg_log.txt

Describe the issue in detail and how to reproduce it:

FPS in Aëdemphia are slow compared to RPG_RT. You can see that in the title screen, I've link the easyrpg_logs.txt.
Please note that Aëdemphia is using the Steam version of RPG Maker 2003, but used to use patchs in the past.

@fdelapena fdelapena added the Performance Related to improvements on memory, less CPU or disk usage, battery savings, etc. label Sep 12, 2022
@Ghabry
Copy link
Member

Ghabry commented Feb 3, 2023

Used a Profiler: 70% of the CPU time on the title screen is in Tone Blit. There is also no way to cache this as the Tone changes dynamically.

The problem here is that with 32 bit rendering that effect is very heavy on the CPU:

  • RPG_RT can do all tone operations in constant time (255 palette entries) because it simply alters the palette.
  • EasyRPG must calculate it for every pixel in every picture.

I don't think this can be solved without rewriting the rendering backend to offload this to the GPU. Shaders will have no problems calculating this.

@FalcoRPGMaker
Copy link

Hey! Just wondering if there is news about this issue? Would it be possible to "ignore" the change tones and not using it since it makes games unplayable because of lags?
Thanks a lot.

@Mimigris
Copy link

Mimigris commented Aug 7, 2023

Hey! Just wondering if there is news about this issue? Would it be possible to "ignore" the change tones and not using it since it makes games unplayable because of lags?
Thanks a lot.

To my knowledge, the situation hasn't changed since this issue was opened, and no work for rendering on the GPU has been started, since lately the focus has been on releasing version 0.8.0, making fixes for version 0.8.1, and after this, the plan will be to focus on the Editor.

Disabling the tones would be more a dirty workaround than anything, making the game not look as intended without solving the real problem. At this point if it is even a possibility, it would probably be better to either remove entirely the commands used in the game, or making a fork of the Player removing the tones.

Also, you are mentioning games: does this affect other games outside of Aëdemphia that you know? The only game in a similar situation to my knowledge is Yume 2kki, though this one is only a problem in two maps, so it could be interesting to know if it may affect other games.

@FalcoRPGMaker
Copy link

Hey, thanks for your anwser.
Just tested Aedemphia with 8.0 and it's much better than before oO
The game was unplayable before, now it's largely playable, with a few performance issues in the big cities, but it's fluid the rest of the time.
It's really great to see that the game is almost playable, there's almost nothing missing for it to be perfectly playable (slightly better performance, and the videos).
Thanks a lot for all the great job guys!

@Ghabry
Copy link
Member

Ghabry commented Aug 13, 2023

Uhm thanks but we did not change anything 🤔.

@FalcoRPGMaker
Copy link

Oh? That's weird, I'm not the only one who notice some improvment with Aedemphia.
For me, it's really night and day performance side.

@Ghabry Ghabry added this to the 0.8.1 milestone Nov 30, 2023
@Ghabry Ghabry modified the milestones: 0.8.1, 0.8.2 Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Related to improvements on memory, less CPU or disk usage, battery savings, etc.
Development

No branches or pull requests

5 participants