Commit Graph

6675 Commits

Author SHA1 Message Date
Ryan Dwyer 77c07dd6df Profiling: Fix AUD figure 2022-11-05 09:17:02 +10:00
Ryan Dwyer 05afabf037 Only calculate lookingatprop when necessary 2022-11-04 08:15:21 +10:00
Ryan Dwyer 30f5d24c15 Disable antialias in render modes 2022-11-03 22:50:05 +10:00
Ryan Dwyer 895215c332 Fix some ailists not running 2022-11-03 21:22:21 +10:00
Ryan Dwyer 4e797820ea Introduce profiling 2022-11-03 21:14:25 +10:00
Ryan Dwyer aabec4d103 Allow 1xxx ailists to be completely terminated 2022-11-03 08:28:36 +10:00
Ryan Dwyer 4632c3113f Improve logic for objectives failed HUD message
* Roll up all the objective failed commands into a new "any objective failed" one
* Remove wasteful looping logic from ailist
* Use existing statuses array instead of recalculating every objective on every frame
2022-11-02 21:40:23 +10:00
Ryan Dwyer 6385e137d0 Remove unused global ailists 2022-11-02 21:16:18 +10:00
Ryan Dwyer 2c0b5711c1 Pass ailist pointers around instead of ailist IDs to avoid runtime bisection 2022-11-02 20:38:01 +10:00
Ryan Dwyer b838521081 Remove truck, heli and aiplayerdeadlist 2022-11-02 17:45:14 +10:00
Ryan Dwyer 7841b59eef Introduce ai2asm 2022-11-02 17:35:19 +10:00
Ryan Dwyer a5b4d0017b Fix portal problem in Skedar Ruins and WAR 2022-10-31 17:34:02 +10:00
Ryan Dwyer 301dfd8df6 Fix crash in disguise training 2022-10-31 17:34:02 +10:00
Ryan Dwyer 3aa6674330 Fix array overflow in chrnum lookup 2022-10-31 17:34:02 +10:00
Ryan Dwyer 1215434097 Replace chrnum bisection with array lookup 2022-10-31 17:34:02 +10:00
Ryan Dwyer 9668be14ba Create chr_is_deadish AI command 2022-10-31 17:34:02 +10:00
Ryan Dwyer 1f05cfdc2e Bypass some logic when BG is preloaded 2022-10-31 17:34:02 +10:00
Ryan Dwyer ac1cde8b0d Precompute return values for RANDOMFRAC() 2022-10-31 17:34:02 +10:00
Ryan Dwyer 010a6851bf Fix excessive float usage in sightDrawZoom 2022-10-31 17:34:02 +10:00
Ryan Dwyer 8b19b8a018 Replace individual x/y/z copies with struct copies where possible 2022-10-31 17:34:02 +10:00
Ryan Dwyer 227beacec1 Replace some unnecessary mtc1/swc1 instructions in mtxasm.s 2022-10-31 17:34:02 +10:00
Ryan Dwyer 4ea746b37d Fix camspy 2022-10-31 17:34:02 +10:00
Ryan Dwyer 38dddf0c4f Don't calculate lookahead unnecessarily 2022-10-31 17:34:02 +10:00
Ryan Dwyer f800a69143 Enable preloading for non-weapon inventory items 2022-10-31 17:34:02 +10:00
Ryan Dwyer 3c117b2157 Simplify BG preloading code 2022-10-31 17:34:02 +10:00
Ryan Dwyer dcf1de3f87 Preload the stage's natural weapons 2022-10-31 17:34:02 +10:00
Ryan Dwyer 15fc4a0a7c Fix a BG preload bug and make other related improvements 2022-10-31 17:34:02 +10:00
Ryan Dwyer 266163bcfe Replace BG visibility scripts with C implementation 2022-10-31 17:34:02 +10:00
Ryan Dwyer 0528fe0539 Re-ID AI commands so the most common commands can be identified by the first byte only 2022-10-31 17:34:01 +10:00
Ryan Dwyer 22cd732d8a Remove another VI mode 2022-10-31 17:34:01 +10:00
Ryan Dwyer c1cab6e03e Make AI command handlers able to be inlined 2022-10-31 17:34:01 +10:00
Ryan Dwyer 420d5ee990 Remove unused VI modes 2022-10-31 17:34:01 +10:00
Ryan Dwyer 66f99b50d6 Read pad data directly rather than copying it to the stack 2022-10-31 17:34:01 +10:00
Ryan Dwyer 0b87a5af75 Store pads in their full unpacked format 2022-10-31 17:34:01 +10:00
Ryan Dwyer 0bd58592c4 Change chr AI timers to integers 2022-10-31 17:34:01 +10:00
Ryan Dwyer 04ca114465 Remove excessive reads and writes to g_Vars properties in AI loop 2022-10-31 17:34:01 +10:00
Ryan Dwyer cb0b99d28a Preload BG rooms where possible 2022-10-31 17:34:01 +10:00
Ryan Dwyer e16567742d Place game segment after bss to make more room for memp 2022-10-31 17:34:01 +10:00
Ryan Dwyer bef9668e68 Preprocess ailists to convert goto-labels to goto-offsets 2022-10-31 17:34:01 +10:00
Ryan Dwyer 0c948fdce9 Use pointers for aioffsets 2022-10-31 17:34:01 +10:00
Ryan Dwyer e36d700bad Remove dprint AI command 2022-10-31 17:34:01 +10:00
Ryan Dwyer 827a2f75ee Cache the playercount instead of calculating it many times 2022-10-31 17:34:01 +10:00
Ryan Dwyer 6db8be6d14 Remove code relating to 4MB 2022-10-31 17:34:01 +10:00
Ryan Dwyer c9f4fef2d6 Remove camdraw code 2022-10-31 17:34:01 +10:00
Ryan Dwyer 2995dc4a88 Disable crash and rmon threads 2022-10-31 17:34:01 +10:00
Ryan Dwyer 7c6805c3e2 Make the expansion pak required and disable virtual memory 2022-10-31 17:34:01 +10:00
Ryan Dwyer 4e9d88fab9 Print unused memory to HUD 2022-10-31 17:34:01 +10:00
Ryan Dwyer d89fef7ea9 Implement frame rate graph 2022-10-31 17:33:44 +10:00
Ryan Dwyer 32d529e9b5 Avoid UB in bondview's var800a41c0 2022-10-31 17:31:02 +10:00
Ryan Dwyer e3d77e8086 Avoid some potential UB in bgBuildTables 2022-10-31 17:30:51 +10:00