Commit graph

196 commits

Author SHA1 Message Date
Pieter-Jan Briers
e07801070e
Optimize map rendering (#242)
It is much faster now, way less terrible blitting code.

---
SpaceManiac's benchmarks indicate about 9% speedup when rendering MetaStation with `--release` on.
2021-02-16 18:00:18 -08:00
Tad Hardesty
093675cf28 Fix kirbyplant/random rendering 2020-10-08 18:25:22 -07:00
Tad Hardesty
3463cda922 Implement bitmask smoothing 2020-10-08 18:24:33 -07:00
Tad Hardesty
1d3f2a2a36 Rename constants according to bitmask smoothing refactor 2020-10-08 17:52:39 -07:00
Tad Hardesty
dfa7a1b25e Move common icon rect logic into dreammaker crate 2020-09-13 19:17:07 -07:00
Tad Hardesty
df2a9552cc Move common state index logic into dreammaker crate 2020-09-13 19:15:21 -07:00
Tad Hardesty
3477a6d95d Move some triplicate logic into Metadata::from_file 2020-09-13 18:59:15 -07:00
Tad Hardesty
aef7fbbebf Work around lodepng making breaking changes in 3.1.0 2020-09-13 18:31:42 -07:00
Tad Hardesty
d0ca40b6fc Add relics to random render pass 2020-09-12 15:37:37 -07:00
Tad Hardesty
7bdf77e221 Update unary atmos icons for existence of layer 4 2020-09-12 15:27:49 -07:00
Tad Hardesty
4e1f385d0d Update renderer for /tg/ icon smooth refactor 2020-09-12 15:13:56 -07:00
Tad Hardesty
ced3f42620 Upgrade to lodepng v3.0 2020-07-11 12:49:53 -07:00
Tad Hardesty
5e514214b0 Always buffer files before lexing them 2020-05-02 15:30:41 -07:00
Tad Hardesty
f2eb7755ef Resolve unused parens warnings 2020-05-02 14:24:05 -07:00
Tad Hardesty
a8df352eb2 Update miscellaneous dependencies 2020-04-04 15:36:24 -07:00
Tad Hardesty
361065ea20 Fix 'error loading icon' warning if airlocks do not have overlays_file var 2020-03-31 17:31:33 -07:00
Tad Hardesty
240370c8b7 Rename DMError::set_cause to with_cause 2020-01-12 13:28:13 -08:00
Tad Hardesty
4a8317c232 Remove map lint module 2019-12-22 15:48:02 -08:00
Tad Hardesty
b381a16501 Update bumpalo dependency 2019-12-20 23:34:56 -08:00
Tad Hardesty
4f45c94f4d Lift lifetime restrictions on get_proc and navigate_path 2019-12-16 22:13:13 -08:00
Tad Hardesty
9dc992fd52 Update dmm-tools to 2018 edition 2019-12-08 20:59:02 -08:00
Tad Hardesty
588370e01c Remove extraneous absolute paths 2019-12-08 20:52:45 -08:00
Tad Hardesty
bd76179ad2 Remove unnecessary HasLocation implementations 2019-12-07 23:24:30 -08:00
Tad Hardesty
e03cc66244 Add additional HTML colors 2019-12-07 12:47:30 -08:00
Tad Hardesty
2834ab5acc Add sprite_filter render pass step
Fixes "hide-space" not correctly hiding space underlays of diagonally
smoothed shuttle walls.
2019-11-23 15:01:42 -08:00
Tad Hardesty
5d151a5211 Fix item path on random-colored tapes 2019-11-23 14:33:40 -08:00
Tad Hardesty
811f51b6c5 Add basic version of lootdrop spawner handling
Imperfect due to not having access to the maintenance loot tables.

Considering this to close #18.
2019-11-23 14:16:37 -08:00
Tad Hardesty
285d36c856 Add starter READMEs for the dmm-tools and editor crates 2019-11-20 19:59:03 -08:00
Tad Hardesty
e6788fc9ca Integrate Category and Layer into RenderPop 2019-11-18 21:29:59 -08:00
Tad Hardesty
7c5a35bae8 Add documentation 2019-11-17 20:32:32 -08:00
Tad Hardesty
d7881da4c6 Remove Option from get_atom_list errors parameter 2019-11-17 20:03:40 -08:00
Tad Hardesty
c0cc04e05d Make Atom::type_ private 2019-11-17 19:26:54 -08:00
Tad Hardesty
c9765a084a Tidy neighborhood creation 2019-11-17 19:26:40 -08:00
Tad Hardesty
8986708fff Use precomputed atoms to build neighborhood as well 2019-11-17 19:15:35 -08:00
Tad Hardesty
0161b98815 Call get_atom_list in advance for the main iteration 2019-11-17 19:01:04 -08:00
Tad Hardesty
575dda72a6 Implement fancy rendering for smart cables
Closes #107.
2019-11-17 18:25:58 -08:00
Tad Hardesty
ac626acab5 Add Dir group consts 2019-11-17 17:53:19 -08:00
Tad Hardesty
25ff4c2b78 Re-export extra render passes in main modle 2019-11-17 17:44:39 -08:00
Tad Hardesty
091cd96671 Make icon smoothing a render pass 2019-11-17 17:40:41 -08:00
Tad Hardesty
4971697711 Reorder parameters on handle_smooth and add return value 2019-11-17 17:28:38 -08:00
Tad Hardesty
7f5bcdcedb Fix bumpalo-related memory leaks 2019-11-17 17:18:06 -08:00
Tad Hardesty
f57e54d536 Take the ObjectTree and Bump directly in icon smoothing 2019-11-17 16:35:21 -08:00
Tad Hardesty
ac27837b81 Move 'mask' parameter to IconSmoothing struct 2019-11-17 16:24:59 -08:00
Tad Hardesty
67335f1062 Rename Adjacency to Neighborhood 2019-11-17 16:19:12 -08:00
Tad Hardesty
3ee46ce47c Move Adjacency calculation to minimap 2019-11-17 16:17:58 -08:00
Tad Hardesty
248470b27f Use an Adjacency during icon smoothing 2019-11-17 16:07:14 -08:00
Tad Hardesty
545b1fd16a Add Adjacency helper type 2019-11-17 16:05:44 -08:00
Tad Hardesty
155499f804 Use consistent flag naming in icon_smoothing module 2019-11-17 15:42:00 -08:00
Tad Hardesty
8411f42f09 Move i32 direction constants to icon_smoothing module 2019-11-17 15:37:28 -08:00
Tad Hardesty
e1a73ff3a9 Add more manipulation methods to Dir 2019-11-17 15:36:04 -08:00