Skip to content

Match: Performance (except 2 functions)#8

Open
andresj-sanchez wants to merge 3 commits intoKidWizardOfTheWeb:masterfrom
andresj-sanchez:performance-decomp
Open

Match: Performance (except 2 functions)#8
andresj-sanchez wants to merge 3 commits intoKidWizardOfTheWeb: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
Copy link
Copy Markdown

decomp-dev bot commented Apr 1, 2026

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%

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.

1 participant