Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlimited map memory #47253

Merged
merged 26 commits into from
Jul 9, 2021
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6212398
Encapsulate map::drawsq() arguments and clarify their meaning
olanti-p Nov 27, 2020
e8246ac
Split map memory into submap-sized chunks
olanti-p Nov 27, 2020
4702785
Optimize map memory access
olanti-p Nov 27, 2020
3e2c7d2
Save/load memorized submaps; migrate old mm file
olanti-p Nov 28, 2020
126e690
Remove leftovers from map memory limit
olanti-p Nov 27, 2020
0812916
Some map memory cleanup
olanti-p Nov 28, 2020
b8a0661
Don't save empty mm submaps
olanti-p Nov 28, 2020
8f16ab2
Deallocate far-away mm submaps on save; report save failure
olanti-p Nov 28, 2020
7f10ccb
Rework tests for map memory
olanti-p Nov 28, 2020
88d99e5
Don't re-allocate region if old region contains required submaps
olanti-p Nov 28, 2020
ae99411
Remove map_memory.h from avatar.h
olanti-p Nov 28, 2020
1b215c2
Rename memorized_submap -> mm_submap
olanti-p Dec 3, 2020
925e94e
Rename mm_submap::clean -> mm_submap::empty, add comments.
olanti-p Dec 3, 2020
c22ac53
Improve drawsq_params interface
olanti-p Dec 3, 2020
c4c46ff
Remove map_memory.h from lru_cache.cpp
olanti-p Dec 3, 2020
c079162
Add function for rectangle overlapping
olanti-p Dec 3, 2020
9cdd446
Save mm_submaps in regions
olanti-p Dec 3, 2020
670a5c7
Fix save/load not using avatar's global pos, improve docs.
olanti-p Dec 3, 2020
261c594
When saving, compress mm_submaps using RLE
olanti-p Dec 3, 2020
1de9048
Simplify map rendering in ascii mode
olanti-p Dec 4, 2020
632076d
Memorize off-screen tiles in ascii mode
olanti-p Dec 5, 2020
7525076
Fix copypasted code
olanti-p Dec 5, 2020
59593a9
Fix tile memory saving code, minor cleanup.
olanti-p Dec 6, 2020
b29f5a1
Add debug logging for tile memory operations
olanti-p Dec 6, 2020
b8fe4ba
Fix broken saving for tile memory submaps with z != 0
olanti-p Dec 7, 2020
89a1240
Lazy allocation for tile memory submaps
olanti-p Jan 8, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix copypasted code
  • Loading branch information
olanti-p authored and kevingranade committed Jul 8, 2021
commit 75250764183edaf20d84f7009ff2ea35a93191d3
2 changes: 1 addition & 1 deletion src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5840,7 +5840,7 @@ void map::draw( const catacurses::window &w, const tripoint &center )
}

const maptile curr_maptile = maptile_at_internal( p );
params
mm_params
.low_light( lighting == LL_LOW )
.bright_light( lighting == LL_BRIGHT );

Expand Down