Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Does this/can this utility exist? FPS Diagnoser  (Read 1208 times)

ungratefuldead

  • Escaped Lunatic
    • View Profile
Does this/can this utility exist? FPS Diagnoser
« on: May 29, 2016, 12:43:24 pm »

So, especially with the 0.40+ versions, I probably spend twice as much time trying to figure out various causes of FPS droppage than I actually do playing the game. It would be so amazing if there was a utility that would tell me what calculations were taking the game longest - is there a creature pathfinding out of a tree, is there a bottleneck, etc. Is this feasible?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Does this/can this utility exist? FPS Diagnoser
« Reply #1 on: May 29, 2016, 06:41:32 pm »

These are usually called "profilers". I can't really provide one at the moment.

EDIT: Using CodeXL, here's an example profile of a save of Fortbent I have that I noticed stuttering during gameplay for:



As you can see, the profiler only sees Dwarf Fortress proper's functions as memory addresses here, so unless you know what exactly the assembly at that address is doing you're SOL for actually learning anything. The dfhack stuff is reasonably clear, though, and the stuttering is almost certainly caused by something I'm doing that involves calling DFHack::virtual_identity::adjust_vtable.
« Last Edit: May 29, 2016, 10:41:17 pm by Putnam »
Logged