vampiress ,
@vampiress@eigenmagic.net avatar

Ahhhhhh that's satisfying. Just optimised the living shit out of my virtual text rendering code.

Dungeons of Freeport SDL version now runs at the right speed. Was an easy fix too.

I'd done the text rendering in a QUICK and nasty way just to ensure it worked. It re-rendered each character every frame, which is adding and removing a LOT Of sprite nodes.

(More details in the alt text for the image)

Apple Instruments showing execution of DFP before optimisation. The spike at the start is pathing a bunch of NPCs around - that should be spread over numerous frames to hide any frame drop on slower machines, so that’s my next optimisation fix.
After checking to see if the character NEEDS re-drawing, and the CPU load is MUCH lower. We still have the huge spike at the start from the pather but that’s something I’ll be fixing next.

ALT
  • Reply
  • Expand (1)
  • Collapse (1)
  • Loading...
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines