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
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Matthias Mailänder
d514689ec7
hard-coded ScrollVelocity to YAML
2014-03-29 19:50:31 +01:00
Paul Chote
a501828660
Simplify the map chooser code.
2014-03-16 21:45:59 +13:00
Paul Chote
c30b18a9d6
Introduce MapCache and MapPreview for improved UI map previews.
2014-03-16 21:45:59 +13:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
Paul Chote
1870e31662
Double clicking a map in the chooser now selects it.
2013-10-31 08:46:16 +13:00
Paul Chote
d739b747de
Only render the previews we can actually see.
...
This really should be fixed generally in ScrollPanelWidget,
but this is the most painful case.
2013-04-06 03:12:02 +13:00
Paul Chote
4bc5d06c19
Minor map chooser polish tweaks.
2013-04-06 02:28:26 +13:00
Paul Chote
8f7940f969
Move threading into the preview generation.
2013-04-06 01:39:05 +13:00
Paul Chote
c2cc4c2256
Add random map button to the C&C map chooser.
...
This also fixes issues relating to RunAfterTick
calls being run out of order - the downside being
that the list remains empty until the iteration
is complete. This will be fixed in a following patch.
2013-04-06 01:39:04 +13:00
Carko
50ceb7c4dd
Fixed the asynchronous map loading behavior when changing filter
2013-01-18 11:00:56 +13:00
Carko
4395a04d57
Asynchronous loading of map previews in the map chooser dialog
2013-01-18 11:00:56 +13:00
Carko
88959b2e6c
Changed scroll velocity in the map chooser to be better suited for mouse scrolling
2013-01-03 11:37:59 +13:00
Scott_NZ
f146cedad5
Improve the thresholds a bit
2012-09-16 12:27:33 +12:00
Scott_NZ
cc449f81f8
Describe the map size in words
2012-09-16 12:27:33 +12:00
Scott_NZ
c33c9e9f69
Fixes #2386 (Add map size to map list)
2012-08-28 16:18:15 +12:00
Chris Forbes
c30d46c014
#2051 fixed -- Widget.Get() throws by default
2012-04-27 19:39:07 +12:00
Chris Forbes
ed429a3b30
split Widget static bits into Ui static class
2011-12-13 23:38:59 +13:00
Chris Forbes
6010034b4a
remove ObjectCreator.Param and all associated nonsense
2011-10-21 18:16:07 +13:00
Chris Forbes
57308773a2
grid layout mapchooser in cnc too
2011-10-09 11:12:57 +13:00
Chris Forbes
a193eeb202
Convert RA mapchooser to use a grid of minimap images
2011-10-08 21:35:46 +13:00
Chris Forbes
cf46a7ed5f
scroll maplist to the top when changing filter
2011-10-08 17:36:48 +13:00
Chris Forbes
f966c08fed
remove playercount labels in RA mapchooser
2011-10-08 17:20:52 +13:00
Chris Forbes
12b8774e6d
game mode selector in map chooser
2011-10-08 17:20:09 +13:00
Chris Forbes
f79dfd51a2
add gamemode filter to EnumerateMaps
2011-10-08 17:09:01 +13:00
Chris Forbes
d3b5939613
remove duplication between CncMapChooserLogic and MapChooserLogic
2011-10-06 22:58:27 +13:00
Chris Forbes
bdcd8097e5
start reducing differences between cnc and ra mapchoosers
2011-10-06 22:58:27 +13:00
Chris Forbes
dfa456a537
tidy mapchooser files
2011-10-06 22:58:26 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
0eb98ef3b5
use OrderBy().ThenBy() rather than relying on unspecified stability of OrderBy().
2011-09-26 08:40:39 +13:00
Chris Forbes
cfc499e459
tidy usings for MapChooserLogic
2011-07-17 10:52:05 +12:00
Chris Forbes
b9834c5b88
work on #993 -- removed OnMouseUp from MapChooserLogic.cs
2011-07-14 20:29:05 +12:00
Paul Chote
193999a040
Move OnMouseUp onto ButtonWidget and drop its unnecessary plumbing.
2011-07-14 20:29:02 +12:00
Paul Chote
dc9b0adba9
Kill unused map installation code.
2011-06-24 17:26:33 +12:00
Chris Forbes
ef03d46f13
eradicate 'delegate' misuse
2011-05-22 22:02:09 +12:00