RoosterDragon
9dbbc23967
Make map preview generation fast.
...
- Change Map.LoadMapTiles and Map.LoadResourceTiles to read the whole stream into memory before processing individual bytes. This removes the cost of significant overhead from repeated calls to ReadUInt8/16.
- Remove significant UI jank caused by the map chooser by not including the placeholder widget. The maps render fast enough that it is no longer worthwhile and it was causing a lot of flushes which were the source of the jank.
- Trigger async generation for all maps when the chooser is loaded. This means in practice all previews will be ready by the time the user begins to scroll the selection. Since generation is fast, there is no issue with scrolling straight to the bottom and having to wait for the backlog to clear.
2014-06-10 11:46:39 +01:00
Paul Chote
373529e110
Merge pull request #5505 from pavlos256/map-preview-generation
...
Map preview generation
2014-06-10 17:56:21 +12:00
Paul Chote
6dc83cf325
Merge pull request #5497 from Mailaender/map-rule-status-after-download
...
Fixed automatic map upload not refreshing map rule status
2014-06-01 18:29:39 +12:00
Matthias Mailänder
00662fe391
also do a local rule check after map download
2014-06-01 06:01:41 +02:00
Pavlos Touboulidis
7d352fdad1
MapCache performance improvements
2014-05-31 23:49:04 +03:00
Matthias Mailänder
61d576ec6e
harden map search preview against invalid data
...
fixes #5492
2014-05-31 15:19:22 +02:00
Matthias Mailänder
bb57ccd5bb
update MapRuleStatus after download
...
fixes #5479
2014-05-31 13:14:53 +02:00
Matthias Mailänder
e80eb7e0ee
Merge pull request #5353 from pchote/map-validation
...
Disable maps with invalid rules
2014-05-22 09:55:06 +02:00
WolfGaming
00698cefff
Added in code for Tech Levels using prereqs
...
and fixed up some kinks of the old system
2014-05-19 03:29:25 +00:00
Paul Chote
69e87b0057
Disable maps with broken rules in the lobby. Fixes #4334 .
2014-05-18 17:41:36 +12:00
Paul Chote
657ade7221
Add map folder types. Fixes #4635 .
2014-05-18 17:29:42 +12:00
Pavlos Touboulidis
df6159f12b
Do not use the map's rules when rendering the minimap in the map chooser
...
Using the mod's rules is *a lot* faster because we don't have to load
each map's rules.
2014-05-17 14:33:17 +03:00
Pavlos Touboulidis
cb30553000
Remove stray newlines
2014-05-17 14:33:16 +03:00
Pavlos Touboulidis
894db95d58
Move Ruleset.cs from Map/ to GameRules/
2014-05-17 14:33:16 +03:00
Pavlos Touboulidis
44c01bbaa2
Remove TileSetData and separate TileSet from Sequences
2014-05-17 14:33:16 +03:00
Pavlos Touboulidis
750fc4e02c
Merge ModRuleset and MapRuleset into Ruleset
2014-05-17 14:33:16 +03:00
Pavlos Touboulidis
63ec6d60e7
Refactoring to remove static Rules & SequenceProvider
2014-05-17 14:32:03 +03:00
Pavlos Touboulidis
77d0199384
Convert ActorReference field to Lazy
...
Makes LoadMaps 40% faster
2014-05-17 14:26:53 +03:00
Matthias Mailänder
59ace5d01b
new shorthand Exts.(Try)ParseIntegerInvariant
2014-05-13 14:16:41 +02:00
Matthias Mailänder
b19d286f56
parse with NumberFormatInfo.InvariantInfo everywhere
...
closes #5240
2014-05-06 18:31:48 +02:00
Pavlos Touboulidis
9dc2b3cd76
Optimize ComputeHash by removing Concat() and ToArray() calls
2014-04-23 03:48:49 +03:00
Pavlos Touboulidis
2d8cd8299f
Add more perf measurements
2014-04-23 03:43:46 +03:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00