tobspr
a71c0b8039
Take 3 on the belt performance (+ tslint fixes)
4 years ago
tobspr
9ce912dbdd
Second take on belt performance
4 years ago
tobspr
192d1dbedb
Initial take on belt optimization
4 years ago
tobspr
7ca425c8f3
Fix belt rendering bug
4 years ago
tobspr
182b62d604
Add method to debug changed areas
4 years ago
tobspr
77ddef0170
Add more FPS to belt animation
4 years ago
tobspr
6677ff0a44
Initial take on wires
4 years ago
tobspr
7b15a256b5
Further improve belt placement performance
4 years ago
tobspr
12927ec0ff
Merge pull request #198 from Phlosioneer/remove-belt-cache
...
Optimize belt cache
4 years ago
tobspr
9789468c2d
Improve performance by caching area of changed ejectors
4 years ago
tobspr
b575bc4f41
Merge pull request #200 from Phlosioneer/ejector-cache-opt
...
Optimize ejector cache
4 years ago
tobspr
f204189fdb
Refactor smart underground belt logic
4 years ago
Phlosioneer
f15cd5bcff
Rework to cache instead of serialize
...
Using lessons from other PRs
4 years ago
Phlosioneer
eb182d6e94
Fix lint issues
4 years ago
Phlosioneer
da24c472d7
Fix click and drag
...
Clicking and dragging can trigger up to 4 add/destroy signals, and it's
a common case.
4 years ago
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.
4 years ago
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.
4 years ago
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.
4 years ago
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.
4 years ago
Phlosioneer
83a4928be5
Make miners cache mined item
...
Saves two chunk+tile lookups per update, and one chunk+tile lookup per
draw.
4 years ago
tobspr
b753187cde
Add setting to disable smart tunnels
4 years ago
tobspr
b8c3668d88
Placing underground belts now removes belts and other (unneeded) tunnels inbetween
4 years ago
tobspr
cda24ceb04
Refactor item acceptor system for huge performance improvement
4 years ago
tobspr
e95b055e10
Minor improvements to belt performance
4 years ago
tobspr
bd944ea758
Update german translation
4 years ago
tobspr
15877f3040
German translations, minor improvements
4 years ago
tobspr
1c717b0f37
Change hub texture and allow translating it, update stacker texture
4 years ago
tobspr
ffd011ac45
Preparations for the trailer
4 years ago
tobspr
dfe1e64b27
Further blueprint improvements
4 years ago
tobspr
dc6c20b8f0
Improve unlock notification
4 years ago
tobspr
c6228f8d32
Allow toggling debug info and fix miners sometimes being incorrectly culled
4 years ago
tobspr
1577ebe48c
Add storage building
4 years ago
tobspr
14edac0f93
Fix wrong belt stats
4 years ago
tobspr
a42b625aa5
Fix multiple bugs in the belt system
4 years ago
tobspr
2c48cb72aa
Major performance improvements
4 years ago
tobspr
260ba892c8
Properly process belt dependencies and fix items not travelling linear on belts
4 years ago
tobspr
ca0e17f3dd
Support dynamic tick rates
4 years ago
tobspr
65529cce1a
Fix hub not accepting all itmes
4 years ago
tobspr
d58d15ef8c
Add building speed infos to all buildings
4 years ago
tobspr
a70a937302
Initial support for translations
4 years ago
tobspr
13c6fc7598
Multiple improvements
4 years ago
tobspr
cad6b357e3
Add quad cutter and painter
4 years ago
tobspr
bce44188c8
Add underground belt tier 2
4 years ago
tobspr
5179488373
Add CCW rotater
4 years ago
tobspr
12fc7b084a
Make belts balanced
4 years ago
tobspr
5e3c28c150
Add support for different building variants
4 years ago
tobspr
9f0435b51d
Minor fixes, improve rendering performance
4 years ago
tobspr
b01d38e55d
Initial support for saving games
4 years ago
tobspr
af0f56b5e4
Add basic sounds
4 years ago
tobspr
cf5d776270
Add type hints to signals
4 years ago
tobspr
9898916807
Statistics tab
4 years ago
Tobias Springer
eb46b45c9a
Minor fixes
4 years ago
Tobias Springer
bb1758642b
Add originalRotation to static comp in order to fix bugs with the automatic placement
4 years ago
Tobias Springer
72476486b7
Improve placement of belts
4 years ago
Tobias Springer
93c6ea683d
Initial commit
4 years ago