hexagonhexagon
54653cf28e
Make edge case where building is replaceable but unremovable an assertAlways.
2020-06-21 18:11:55 -04:00
hexagonhexagon
c7e0703c45
Fix bug where belts in blueprints don't orient correctly.
2020-06-21 17:52:12 -04:00
tobspr
969b7a74d4
Fix belt planner shortcut being shown always
2020-06-21 23:01:42 +02:00
tobspr
597eefe968
Deselect blueprint on pipette
2020-06-21 22:51:42 +02:00
tobspr
d907dbb191
Improve pipette
2020-06-21 22:29:23 +02:00
tobspr
5b2df00cc7
Fix pipetting belts
2020-06-21 22:05:41 +02:00
tobspr
ba52edf7a4
Fixes for the pipette
2020-06-21 21:59:35 +02:00
tobspr
76b619e4e7
Allow deselecting with pipette
2020-06-21 21:46:20 +02:00
tobspr
0b31ad0c7b
Pipette
2020-06-21 21:44:53 +02:00
tobspr
38114ff3f6
Fix right click to delete not working
2020-06-21 21:22:33 +02:00
tobspr
47b3ed5cbf
Add option to render info boxes compact
2020-06-21 20:47:37 +02:00
tobspr
d1fe231bcb
Remove unused keybindings
2020-06-21 20:17:03 +02:00
tobspr
1458e1aad0
Update changelog
2020-06-21 19:58:54 +02:00
tobspr
7cd0054c55
Merge pull request #223 from Joker-vD/labels-are-way-too-short
...
Map markers' labels are way too short.
2020-06-21 19:42:01 +02:00
tobspr
cd36e9084a
Minor code style adjustments
2020-06-21 19:33:58 +02:00
tobspr
e4b2c51484
Merge pull request #212 from xSparfuchs/master
...
fix for screenshots larger than 16,384 x 16,384
2020-06-21 19:32:57 +02:00
tobspr
daef0f1e4e
Refactor keybindings overlay to show more appropriate keybindings
2020-06-21 19:30:44 +02:00
tobspr
ecda498cac
Merge branch 'master' of https://github.com/tobspr/shapez.io
2020-06-21 18:11:43 +02:00
tobspr
2dec257dd9
Cleanup click detector code
2020-06-21 18:11:41 +02:00
tobspr
cbdc302760
Merge pull request #193 from Phlosioneer/miner-optimization
...
[Minor Opt] Make miners cache mined item
2020-06-21 18:10:46 +02:00
Joker_vD
2b6a8e49d1
Only 14 characters for labels? That's 1/10 of a twit!
2020-06-18 22:26:15 +03:00
Phlosioneer
f15cd5bcff
Rework to cache instead of serialize
...
Using lessons from other PRs
2020-06-17 15:38:39 -04:00
xSparfuchs
8d21c1dfaf
fine
2020-06-17 20:38:11 +02:00
xSparfuchs
889e22ea69
Update screenshot_exporter.js
2020-06-17 20:33:20 +02:00
xSparfuchs
1b85c32b3b
prettier
2020-06-17 20:31:39 +02:00
xSparfuchs
e63638f364
Update screenshot_exporter.js
2020-06-17 20:17:23 +02:00
xSparfuchs
8372293d5d
Update screenshot_exporter.js
2020-06-17 20:16:37 +02:00
xSparfuchs
c1ef4e85af
whitespaces
2020-06-17 20:11:55 +02:00
xSparfuchs
a5e5cd9e4f
fix large screenshots
2020-06-17 19:44:53 +02:00
tobspr
a6ed85e9da
Fix belt planner
2020-06-17 15:57:34 +02:00
tobspr
61bcc31861
Fix mouse handling
2020-06-17 14:56:21 +02:00
tobspr
4c20094878
Do not choose direction lock side automatically, instead make it toggleable
2020-06-17 14:39:12 +02:00
tobspr
fc883f1e5e
Add keybinding hint for direction lock
2020-06-17 14:29:43 +02:00
tobspr
3ddc0de2c4
Improve flickering
2020-06-17 14:05:17 +02:00
tobspr
317b7d72ff
Add setting to disable vignette
2020-06-17 13:58:59 +02:00
tobspr
26949d5e3d
Fix flickering in direction lock
2020-06-17 13:55:44 +02:00
tobspr
b6964ad1bf
Improve direction lock
2020-06-17 13:42:53 +02:00
tobspr
0a35c9f5b2
Improve belt direction lock
2020-06-17 13:37:41 +02:00
tobspr
a95e69401d
Improve belt direction lock
2020-06-17 13:21:34 +02:00
tobspr
84969a9205
Refactor building placer
2020-06-17 13:12:39 +02:00
Phlosioneer
eb182d6e94
Fix lint issues
2020-06-16 22:48:29 -04:00
Phlosioneer
da24c472d7
Fix click and drag
...
Clicking and dragging can trigger up to 4 add/destroy signals, and it's
a common case.
2020-06-16 22:08:46 -04:00
Phlosioneer
aef96cff6e
Optimize ejector cache for common case
...
This commit optimizes the ejector cache for clicking and dragging belts,
or adding/removing a building. It's a big performance improvement for
large maps; on average, it only has to visit 60 slots per update,
compared to 20,000+ slots.
2020-06-16 21:50:16 -04:00
Phlosioneer
36cf28029e
Remove ejector cache; use slot caches instead
...
This is a small refactoring that removes the main ejector cache. The
cache is now tracked by slots and ejector components.
It avoids a large array allocation and many small object allocations,
but adds many small array allocations. It's net neutral for performance.
2020-06-16 21:11:26 -04:00
Phlosioneer
2341772425
Optimize belt cache for common case
...
Most of the time, we're adding/removing one building at a time. We don't
need to recheck every belt, only the ones near the changed belt.
2020-06-16 20:23:11 -04:00
Phlosioneer
8a50fdb392
Remove belt cache array; use BeltComponent instead
...
Removed the belt cache array. Follow-up belts are cached in the belt's
BeltComponent instead. This change also removes the recursive follow-up
search, which could cause a stack overflow for an extremely long belt
chain.
Saves one object allocation per belt per change, two very large array
allocations per change, many function calls, and belts are only visited
exactly once per change.
2020-06-16 19:56:09 -04:00
Phlosioneer
d4fc2e6dcd
Fix lint errors
2020-06-16 16:21:45 -04:00
Phlosioneer
83a4928be5
Make miners cache mined item
...
Saves two chunk+tile lookups per update, and one chunk+tile lookup per
draw.
2020-06-16 16:02:29 -04:00
tobspr
736e5fb432
Fix crash
2020-06-16 20:13:46 +02:00
tobspr
31ab5f3422
Disable direction lock for everything but belts
2020-06-16 20:10:00 +02:00