Skip to content

Match: Performance (except 2 functions)#8

Merged
KidWizardOfTheWeb merged 3 commits into
KidWizardOfTheWeb:masterfrom
andresj-sanchez:performance-decomp
Apr 1, 2026
Merged

Match: Performance (except 2 functions)#8
KidWizardOfTheWeb merged 3 commits into
KidWizardOfTheWeb:masterfrom
andresj-sanchez:performance-decomp

Conversation

@andresj-sanchez

Copy link
Copy Markdown
Collaborator

Match: Performance (except 2 functions)

Summary

This PR decompiles most of Performance.cpp.

What Changed

  • Added decompiled implementation for src/Develop/Projects/SR2/pgm/src/Object/Player/Performance.cpp.
  • Added/updated required type and class declarations across Player/Game/Havok/OO/NNS headers.
  • Updated build flags in configure.py:
    • -O3,p
    • -sdatathreshold 0

Current Status

  • Performance.cpp is matched except for:
    • clsPrfm::setup match 89.36%
    • clsPrfm::updateData match 85.66%

@decomp-dev

decomp-dev Bot commented Apr 1, 2026

Copy link
Copy Markdown

Report for SLUS-21642-PROTO-070901 (8081b00 - 658414a)

📈 Matched code: 0.02% (+0.02%, +852 bytes)

✅ 5 new matches
Unit Item Bytes Before After
Develop/Projects/SR2/pgm/src/Object/Player/Performance.cpp clsPrfm::Limit(clsPrfm::stcData&) +664 0.00% 100.00%
Develop/Projects/SR2/pgm/src/Object/Player/Performance.cpp clsPrfm::updateFrame() +140 0.00% 100.00%
Develop/Projects/SR2/pgm/src/Object/Player/Performance.cpp clsPrfm::getDataPtr() const +28 0.00% 100.00%
Develop/Projects/SR2/pgm/src/Object/Player/Performance.cpp clsPrfm::reset() +12 0.00% 100.00%
Develop/Projects/SR2/pgm/src/Object/Player/Performance.cpp clsPlayerTask::getPlayerType() const +8 0.00% 100.00%
📈 3 improvements in unmatched items
Unit Item Bytes Before After
Develop/Projects/SR2/pgm/src/Object/Player/Performance.cpp clsPrfm::updateData() +901 0.00% 85.67%
Develop/Projects/SR2/pgm/src/Object/Player/Performance.cpp clsPrfm::setup(clsCharacter*, clsGearCtrl*) +696 0.00% 89.36%
Develop/Projects/SR2/pgm/src/Object/Player/Gear/GearCtrl.cpp clsGearCtrl::setUnuseGearLevel(nspGear::enmLevel) +5 0.00% 1.67%
📉 1 regression in an unmatched item
Unit Item Bytes Before After
Develop/Projects/SR2/pgm/src/Object/Player/Gear/GearCtrl.cpp clsGearCtrl::behavior() -4 43.20% 38.20%

@KidWizardOfTheWeb KidWizardOfTheWeb merged commit 9c7d874 into KidWizardOfTheWeb:master Apr 1, 2026
1 check passed
@andresj-sanchez andresj-sanchez deleted the performance-decomp branch May 20, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants