Xon
1afb2b3d53
Addded intial region caching.
...
Loads all the offsets & timestamps @ start to share to worker proceses.
From
14609247 function calls (14608852 primitive calls) in 118.278 CPU seconds
to
12232301 function calls (12231906 primitive calls) in 75.825 CPU seconds
2011-03-19 13:36:40 +08:00
Xon
383e8197af
Performance improvements on update scan
2011-03-19 02:50:44 +08:00
Aaron Griffith
83d7a36ef4
moved quadtree.py to mtime-based update checking, and added a stub direct-to-tile renderer
2011-03-01 13:18:25 -05:00
Aaron Griffith
f34d9739e9
removed rendering code from WorldRenderer (now just World)
2011-03-01 12:28:37 -05:00
Andrew Chin
5f2f098d40
Better cache checking, now uses chunk timestamps
...
and possibly fixed a bug in check_cache?
2011-02-28 22:10:36 -05:00
Andrew Chin
caa1ef1f45
Catch proper exception in chunk.py
...
Also removed unnecessary check in world.py
2011-02-28 18:56:22 -05:00
Andrew Chin
1f8fb017a3
Check to ensure level.dat has been updated
...
Error out if level.dat has not been updated. Also, cleaned up some
debugging print statements
2011-02-26 21:59:49 -05:00
Andrew Chin
a690ebbce5
some caching work
...
hashchecking needs to be checked to see if it's still OK
timestamp checking should involved the timestamps from inside the region
file, not of the region file itself.
2011-02-24 23:29:58 -05:00
Andrew Chin
6f060633ad
Running with -p should be OK now
2011-02-24 23:06:36 -05:00
Andrew Chin
05ea562060
Working rendering with the new McRegion format.
...
Notes:
* Currently only works with -p 1
* Caching is mostly compatible with existing caches, but not completly.
This needs more testing and more code reviews
* There are probably many code paths that will throw exceptions.
* Not ready for general use yet, but is OK for testing
2011-02-23 22:13:35 -05:00
Aaron Griffith
5f5bda948e
Merge remote branch 'eminence/mcregion' into mcregion
2011-02-23 18:01:09 -05:00
Andrew Chin
0372aea4ac
New _find_regionfiles function
2011-02-23 17:49:34 -05:00
Aaron Griffith
b40d84f92b
fixed crash on worlds named "World[not int]", and made world list play nice with world names
2011-02-23 13:07:21 -05:00
Aaron Griffith
dd01eae9e0
corrected world loading by name to handle renamed worlds
2011-02-23 12:52:21 -05:00
Andrew Chin
391ba50aea
Provide a nice error message when run on McRegion'd worlds
2011-02-22 19:08:58 -05:00
Alejandro Aguilera
ad9756fa8c
Change to a better looking and better maintainable code. (thanks blixt)
2011-01-05 15:09:55 +01:00
Alejandro Aguilera
23b7e90c54
Fix findTrueSpawn for spawn in y = 128
2011-01-05 02:38:57 +01:00
Andrew Chin
3ee93357b9
Check that level.dat exists before trying to nbt.load it
2010-12-30 21:04:36 -05:00
Andrew Chin
2bf7566b5a
Ignore cache images that don't start with "img."
...
This fixes a bug introduced by the cache-checking changes
2010-12-23 02:21:54 -05:00
Andrew Chin
1a526bbba0
Merged in rmccue's cache checking changes
...
Conflicts:
chunk.py
2010-12-23 02:01:58 -05:00
Jenny
d210076479
Adds spawn output rendering (variant of night which shows dark areas in red) and support for multiple map types with buttons to switch between them.
2010-12-14 02:39:01 -08:00
Ryan McCue
ae0b3dfedf
check_cache() wants a full tuple, not just part
2010-12-14 11:54:26 +10:00
Ryan McCue
b3abb072c8
Use chunk.check_cache
2010-12-13 22:16:35 +10:00
Ryan McCue
439231d280
Pretend a string is an AsyncResult
2010-12-13 21:57:35 +10:00
Ryan McCue
810ecaf6db
Use the proper find_oldimage()
2010-12-13 21:38:19 +10:00
Ryan McCue
fcfaffffbb
Check if the key exists first
2010-12-13 21:21:24 +10:00
Ryan McCue
8def0ffaef
Check cache synchronously, to avoid async overhead.
...
This is starting to do my head in. Apologies if these don't make any
sense, but they do to me. :)
2010-12-13 21:16:21 +10:00
Ryan McCue
c14c6d2bcc
My typing is horrible tonight, use the proper variable name
2010-12-13 20:40:58 +10:00
Ryan McCue
ead41141bb
Use a tuple properly, oops
2010-12-13 20:39:34 +10:00
Ryan McCue
ef82e657ee
Use the right name
2010-12-13 20:38:11 +10:00
Ryan McCue
8ec7986353
Only pass the part of the dict we need to the chunk renderer
2010-12-13 20:34:17 +10:00
Ryan McCue
2eb85ae946
Use the proper directory to walk
2010-12-11 21:18:02 +10:00
Ryan McCue
e7c19f9309
Use a more efficient checker for cached images
2010-12-11 21:10:59 +10:00
Andrew Chin
e96bb91b82
Better handling of the biome tinting images.
...
If they're not found with _find_file, then look in the EXTRACTEDBIOME
folder in the worlddir.
2010-12-05 01:35:12 -05:00
Andrew Chin
c60180f793
Biome data from Biome Extractor is now used if it is present.
...
If the BIOMEEXTRACTOR data is not available, then non-biome aware
tinting will be used
Open biome data in binary mode (Windows requires this)
2010-11-23 00:48:39 -05:00
Andrew Chin
914a3073f0
Fixed --chunklist
...
This bug was introduced by the signpost code which required a queue
object to be passed to the chunk rendered. This wasn't done with
--chunklist
2010-11-08 20:36:02 -05:00
Andrew Chin
d01fb1f520
Merge remote branch 'upstream/master'
2010-11-02 18:59:58 -04:00
Andrew Brown
32552c50d6
only render overworld. Still renders grayscale though
2010-10-31 13:19:58 -04:00
Andrew Chin
f2b34dff7a
Improved handling of signposts
2010-10-24 00:19:27 -04:00
Andrew Chin
cb363df3cd
Initial work on generating markers.js from signposts
...
Details:
* A queue object is passed to all renderers, allowing each process to
avoid using shared memory when recording signpost data.
* New overviewer.dat file that stores persistent data between runs.
Currently used to store information on signs. markers.js is
generated by merging the stored POI list with the newly generated POI
list.
* POIs are tagged with their type (e.g. "spawn" or "sign"). This
should be useful if different types of POIs needs to be
handled/displayed differently
Known bugs:
* If you delete the last sign in a chunk, it won't be removed from
markers.js
2010-10-20 22:11:34 -04:00
Aaron Griffith
f8b516b360
Merge branch 'master' into lighting
...
Conflicts:
chunk.py
2010-10-14 15:01:31 -04:00
Aaron Griffith
51e1721a6d
Merge branch 'master' into lighting
...
Conflicts:
chunk.py
gmap.py
textures.py
world.py
2010-10-05 08:35:23 -04:00
Alex Jurkiewicz
05770468fb
More useful error if invalid --chunklist specified.
2010-10-05 15:29:22 +11:00
Andrew Chin
86d5476234
use os.path.join to build the spawn chunk path
2010-10-01 19:45:41 -04:00
Alex Jurkiewicz
c14740cbc6
Merge branch 'master' of git://github.com/brownan/Minecraft-Overviewer into logging
2010-10-01 09:51:49 +10:00
Alex Jurkiewicz
9f49bf3d77
Change logging to use the 'logging' module.
2010-09-30 14:35:37 +10:00
Andrew Brown
fd43331350
removed unused imports
2010-09-29 23:31:19 -04:00
Aaron Griffith
8dccf4162c
added run-time flags to enable lighting or nighttime rendering
2010-09-28 16:57:23 -04:00
Aaron Griffith
8d145f2b58
added correct chunk boundary lighting
2010-09-27 19:59:41 -04:00
Andrew Brown
aa82a82f13
won't error when no worlds are found. Thanks jbergstroem
2010-09-27 09:03:24 -04:00