Commit Graph

923 Commits

Author SHA1 Message Date
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
dengr1065 05ce8ff430 dark theme for game loading 2020-06-17 04:39:08 +03:00
DecaturRamsey f84037bb9b
Update base-de.yaml 2020-06-17 03:38:33 +02:00
dengr1065 59bae80ab7 dark theme for option chooser dialogs 2020-06-17 04:30:01 +03:00
Andifaind 8667399205 Update base-es.yaml 2020-06-16 22:28:36 -03: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
dengr1065 b9e31049b6 "Dark keybindings" 2020-06-17 03:49:50 +03: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
dengr1065 1bee130dfe Dark theme for settings 2020-06-17 03:19:22 +03: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
dengr1065 97c52169da Changelog, support for dark theme in document root 2020-06-17 02:55:13 +03:00
dengr1065 7f32216404 Main Menu dark theme 2020-06-17 02:20:09 +03:00
Glenn Martin Jensen 5e0ebdff95
Updated Norwegian Translastion to newest version
Updated Norwegian Translastion to newest version
2020-06-16 23:52:44 +02:00
Glenn Martin Jensen 2d569960e1
Updated to newest translations
Updated to newest translations
2020-06-16 23:49:18 +02:00
Phlosioneer d4fc2e6dcd Fix lint errors 2020-06-16 16:21:45 -04:00
Derek Hoagland ddb5aae327
Fix crash when deleting buildings.
Can't check getHasDirectionLockAvailable() on a building you are currently deleting because it doesn't exist.
2020-06-16 16:04:10 -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
Gumball73 3f08cd2d37
Updated pt-PT translation to the latest version
Updated the pt-pt translation to the latest version.
Some of the modifications were suggested by discord user Pequeno#2541

Gumball73
2020-06-16 19:58:53 +01:00
tobspr 736e5fb432 Fix crash 2020-06-16 20:13:46 +02:00
tobspr bbd50fdce9 Update changelog 2020-06-16 20:10:22 +02:00
tobspr 31ab5f3422 Disable direction lock for everything but belts 2020-06-16 20:10:00 +02:00
tobspr e2d6d9d51d Update changelog 2020-06-16 20:05:45 +02:00
tobspr 09bfb4cf89 Update wording to be more accurate 2020-06-16 20:05:27 +02:00
tobspr 46ceefd0d8 Disable automatic orientation when using belt lock 2020-06-16 20:02:52 +02:00
tobspr 215e35166a Switch to different ftp plugin 2020-06-16 19:53:40 +02:00
tobspr 4fc1ff6b0d Improve belt lock 2020-06-16 19:45:16 +02:00
tobspr 3afe2eb329 Update changelog 2020-06-16 19:40:44 +02:00
tobspr 35a13a09e5 Add belt lock feature 2020-06-16 19:40:00 +02:00
tobspr b753187cde Add setting to disable smart tunnels 2020-06-16 19:24:23 +02:00
tobspr 88fba76e3b Sync translations 2020-06-16 19:17:20 +02:00
tobspr 0896e5e666
Merge pull request #191 from DerFeldspatz/patch-3
Update base-de.yaml translation
2020-06-16 19:16:17 +02:00
DerFeldspatz 611559a780
Update base-de.yaml translation
Finsh most of the translation and correct some typos/grammar. Check for some inconsistencies in syntax
2020-06-16 19:06:16 +02:00
tobspr c72c87901d
Merge pull request #190 from mini-bomba/polish-continue-translation
Updated the Polish translation for the continue button
2020-06-16 18:50:46 +02:00
tobspr cca561e2ab Update translation 2020-06-16 18:44:59 +02:00
mini-bomba edf87d7795
Added new translation keys for the continue button 2020-06-16 18:32:02 +02:00
tobspr 3693a643b4 Update css 2020-06-16 17:53:27 +02:00
tobspr 1e1224b496 Merge branch 'master' of https://github.com/tobspr/shapez.io 2020-06-16 17:50:44 +02:00
tobspr 68ec3561c9 Update changelog 2020-06-16 17:50:42 +02:00
tobspr 3c3c5acc8e
Merge pull request #85 from jaysc/continue
Added continue button
2020-06-16 17:48:43 +02:00
tobspr 348221232f Update atlas 2020-06-16 17:11:25 +02:00
tobspr 4dc265c2b9
Merge pull request #175 from PascalGrosse/master
Updated french translation
2020-06-16 17:02:00 +02:00
tobspr 5ddf7bbd58
Merge pull request #148 from Demivan/gulp-4
Update gulp to version 4
2020-06-16 16:56:56 +02:00
tobspr c571c088e6
Merge pull request #140 from dengr1065/patch-1
Dark theme for changelog and completed upgrades
2020-06-16 16:54:26 +02:00
tobspr dbb0b90a2d
Merge pull request #183 from Galo223344/patch-1
Improved the spanish translation.
2020-06-16 16:52:59 +02:00
tobspr 2c1569dfa7
Merge pull request #184 from Killgaru/Lang_ru
Russian translation updated
2020-06-16 16:52:07 +02:00
tobspr 6d3bd106b0
Merge pull request #185 from Withers001-1/patch-2
Translated the create maker message
2020-06-16 16:51:33 +02:00
tobspr 4ed004f902
Merge pull request #186 from mini-bomba/fix-standalone-only-settings-hint
Fixed standalone only setting hint not being translated
2020-06-16 16:51:09 +02:00
DecaturRamsey 9502f5f5b7
Update base-de.yaml
Changed the suffix for large numbers to reflect the German naming convention.
2020-06-16 16:24:59 +02:00
Pascal Grossé 9bcdc68d78 Merge commit from tobspr master 2020-06-16 15:10:50 +02:00
mini-bomba b6e03d6cd0
Fixed standalone only setting hint not being translated 2020-06-16 14:51:48 +02:00