Opened 18 months ago

Last modified 7 weeks ago

#13389 new defect

DRAGONS: Rendering is excessively slow on older devices

Reported by: dwatteau Owned by:
Priority: normal Component: Engine: Dragons
Version: Keywords: slow rendering, performance
Cc: Game: Blazing Dragons

Description

This is with the British PS1 version of Blazing Dragons, with latest Git HEAD of ScummVM.

On any modern computer, rendering is fine.

But on some older devices, such as my PS3 (2006) or my PowerBook G4 (2005), character animation is really slow, and the fans go quite crazy. That's a bit strange for a 2D PS1 game. Just making a character walk a bit makes the game go to very few FPS, and CPU usage seems way higher than with most other 90s 2D games inside ScummVM.

In comparison:

  • The Curse of Monkey Island on the same devices doesn't have this problem (I'm trying to compare Blazing Dragons with a similar game).
  • Rendering is also OK if I use the official PS1 emulator on the PS3, or PCSX on the PowerBook. So, the rendering is actually faster and less power-hungry with a real emulator than with ScummVM.

The Crystal Dynamics/Illusions credits and the intro video appear to run as expected, though. It looks like that there's a framerate sub-optimization when character animation happens?

Enabling/disabling V-Sync appears to have no effect. On the PowerBook, it was maybe a bit better with OpenGL than with SDL, but not much.

I'm at your disposal if something can be done to help profiling the bottleneck.

Attachments (4)

instruments-macppc-scummvm-dragons.png (99.3 KB ) - added by dwatteau 4 months ago.
OSX Instruments main profiling output from an older PowerBook G4
opengl-profiler-scummvm-dragons-macppc.txt (483 bytes ) - added by dwatteau 4 months ago.
OpenGL profiler output from an older PowerBook G4
Instruments ScummVM Dragons MacPPC.trace.zip (655.3 KB ) - added by dwatteau 4 months ago.
Original OSX Instruments output for reference (won't open in newer Instruments.app releases, it seems; see the PNG picture above for the displayed output)
gprof-dragons-macppc.txt.gz (184.0 KB ) - added by dwatteau 4 months ago.
gprof (Debian ppc) output from the PowerBook G4

Download all attachments as: .zip

Change History (6)

by dwatteau, 4 months ago

OSX Instruments main profiling output from an older PowerBook G4

by dwatteau, 4 months ago

OpenGL profiler output from an older PowerBook G4

by dwatteau, 4 months ago

Original OSX Instruments output for reference (won't open in newer Instruments.app releases, it seems; see the PNG picture above for the displayed output)

comment:1 by dwatteau, 4 months ago

FWIW, I've attached some profiling output from Instruments.app and OpenGL-Profiler.app, from my 1.67 GHz PowerBook G4 running OSX Leopard.

The game takes around 50 or 60% CPU usage on this device, for reference. That's much more than a game like COMI, for example.

by dwatteau, 4 months ago

Attachment: gprof-dragons-macppc.txt.gz added

gprof (Debian ppc) output from the PowerBook G4

comment:2 by dwatteau, 7 weeks ago

Keywords: performance added
Note: See TracTickets for help on using tickets.