Juliano Leal Goncalves
bb61dfc68b
♻️ Reuse 'AutoPlaceItemInBelt' inside 'StoreAutoPlace'
5 years ago
Juliano Leal Goncalves
0b8a35f4b0
🔥 Remove now useless 'SpecialAutoPlace' function
5 years ago
Juliano Leal Goncalves
cae4461c39
♻️ Reuse existing functions in place of 'SpecialAutoPlace'
5 years ago
Juliano Leal Goncalves
7430109f7e
💡 Add proper comments to 'AutoPlaceItemInInventorySlot'
5 years ago
Juliano Leal Goncalves
1bc44bc969
🎨 Rename 'AutoPlaceItemInInventorySlot' arguments for readability/consistency
5 years ago
Juliano Leal Goncalves
462acd9422
♻️ Replace 'BOOL' macro with 'bool' type on 'AutoPlaceItemInInventorySlot'
5 years ago
Juliano Leal Goncalves
1c15e244b2
🚚 Rename 'AutoPlace' to 'AutoPlaceItemInInventorySlot'
5 years ago
Juliano Leal Goncalves
e33ea53086
♻️ Pass ItemStruct on inv AutoGetItem function
5 years ago
Juliano Leal Goncalves
3b015085de
♻️ Pass ItemStruct on item RespawnItem function
5 years ago
Juliano Leal Goncalves
b5a89578f0
♻️ Pass ItemStruct on inv InvGetItem function
5 years ago
Juliano Leal Goncalves
01606ea4df
♻️ Pass ItemStruct on inv CleanupItems function
5 years ago
Juliano Leal Goncalves
8e22f3a056
♻️ Pass ItemStruct on inv AutoPlace function
5 years ago
Anders Jenbo
47feeda0ce
🐛 Only initialize the subsystems that we use
...
Fixes #1391
For now this stops the initalization of sensor subsystem, but in the
future SDL may add more that we do not care about.
5 years ago
qndel
c3395de31c
fix typos
5 years ago
Anders Jenbo
bb4d0a90a3
📝 Fix typo
5 years ago
Gleb Mazovetskiy
621d505f67
Packaging/OpenDingux/build.sh: strip the binary
...
devilutionx binary goes from 4.1 MiB -> 3.4 MiB
5 years ago
Gleb Mazovetskiy
45523cc6e1
Packaging/OpenDingux/build.sh: Respect TOOLCHAIN env var
5 years ago
Gleb Mazovetskiy
01aeaea9a6
Remove STORMAPI, use WINAPI for StormLib decls
...
Restores the use of WINAPI but only for StormLib declarations.
This allows us to use StormLib unmodified.
5 years ago
Gleb Mazovetskiy
06eb2ad5e7
StormLib: Skip unused functionality
...
Re-applies `#ifdef FULL` with some minor changes
from the previous version of DevilutionX's fork of StormLib.
5 years ago
Gleb Mazovetskiy
50e4677e2d
StormLib: Add .editorconfig
...
StormLib files are a mix of LF and CRFL.
Ensure we don't modify line endings.
5 years ago
Gleb Mazovetskiy
7a77e88eb0
StormLib: Update to ladislav-zezula/StormLib@95fabe8c0936e013d8764858d6eaf17b6a774e12
5 years ago
Gleb Mazovetskiy
da7567f06e
InitPlrGfx: Only alloc enough for the class
...
Previously, the allocation size was the maximum size over all the classes.
RAM usage per player:
* Before: 2.2 MiB (any class)
* After:
* Warrior: 2.0 MiB
* Rogue: 1.5 MiB
* Sorcerer: 1.6 MiB
* Monk: 1.7 MiB
We now also only allocate memory in multi-player as needed.
This means the game will only use as much RAM for player graphics
as there are players currently in the game.
Less RAM is used for each player because class is now taken into account.
5 years ago
Gleb Mazovetskiy
01574de6a8
Simplify InitPlrGfx
...
It was tracking each type of graphics individually but they're always
initialized together.
5 years ago
Anders Jenbo
433edc63ea
♻️ Consistently use pragma once to guard the headers
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Gleb Mazovetskiy
87dcbcb6d7
Save 1.5 MiB RAM in-game by freeing more DiabloUI art
5 years ago
Anders Jenbo
836ea40d47
🔖 1.2.0 has been release
5 years ago
Anders Jenbo
6f1498d315
🚚 Move structures to there respective headers
5 years ago
Anders Jenbo
bc3dc545da
🔥 Remove unused parts of game creation logic
5 years ago
Anders Jenbo
30af684a26
♻️ Refactor stdarg support headder
5 years ago
Anders Jenbo
501c536017
🎨 Clean up appfat
5 years ago
Anders Jenbo
0953b3524e
🚨 Resolve monster.cpp clang warnings
5 years ago
Juliano Leal Goncalves
9021f8daa5
♻️ Pluralize global 'item' array variable
5 years ago
Yuri Pourre
929e9aaefb
Add healer's missing transcriptions ( #1212 )
5 years ago
Gleb Mazovetskiy
4a18ccb626
CMake: Add GPERF option
...
This option links the tcmalloc and gperf memory profiler.
It can then be used to memory-profile individual sections of the app.
On Ubuntu, the package that provides the profiler is
`libgoogle-perftools-dev`.
5 years ago
Gleb Mazovetskiy
9dd91d1c2c
Save 1.3 MiB RAM in-game by freeing menu resources
...
Running with a memory profiler revealed that we were keeping main menu
UI resources around while the game was running.
5 years ago
Gleb Mazovetskiy
33b4c9581d
ttf_render_wrapped: std functions instead of SDL
...
Some SDL ports, such as the 3DS one and the PSP one, are missing these
SDL functions.
5 years ago
Gleb Mazovetskiy
21a4a671e4
Cleanup DiabloAllocPtr
...
1. Removes a lock around allocation. `malloc` is required to be thread-safe in C11.
2. Defines it as a macro so that:
1. We provide the correct location for the OOM error.
2. We get better attribution from memory profilers.
5 years ago
Anders Jenbo
1700c77547
📝 Update readme
5 years ago
Trihedraf
9368ec4bd0
add 2 missing words in installing.md
5 years ago
Anders Jenbo
7600fb2786
📝 Avoid line break in install instructions
5 years ago
Anders Jenbo
2eacd74d5d
📝 Correct grammar
5 years ago
Anders Jenbo
59aea05f56
📝 Make MPQ step common to all installations
5 years ago
Anders Jenbo
94557153b6
📝 Make the Nintendo 3DS fold out less confusing
5 years ago
Anders Jenbo
73ec15220c
📝 Simplify the install instructions a bit
5 years ago
Anders Jenbo
ab67be5f65
📝 Reinsert in structions on how to get Diablo
5 years ago
Anders Jenbo
250b2b6dc4
📝 Add 3DS support to change log
5 years ago
Anders Jenbo
28bb003601
🐛 use exact size of save format struct
5 years ago
Trihedraf
8d92a8dc5a
Update installing.md
5 years ago