Ryan Rector
110bd10569
Handle more regions
...
This is much, much slower than numpy would do it. I should probably do
this right sometime, but right now I just want it to work.
2011-07-11 21:42:24 -06:00
Ryan Rector
e732eb6450
A smarter (?) attempt at rotating everything.
2011-07-10 21:05:45 -06:00
Xon
729141d426
Initial chunk cache commit mk2
2011-03-26 13:27:33 +08:00
Aaron Griffith
3c51253eba
Merge commit 'xon/dtt-c-render' into dtt-c-render
...
Conflicts:
nbt.py
overviewer.py
2011-03-25 22:44:50 -04:00
Aaron Griffith
84988aa2f6
0-byte region files no longer crash the whole program
2011-03-25 19:48:55 -04:00
Xon
c700afb012
Fixed get_chunks, simplified get_chunk_info
2011-03-26 02:37:10 +08:00
Xon
dbdd5d0fc8
Switched from struct.unpack (module) -> Struct.unpack (class), it compiles the format string and reduces parsing costs. Coalesced a
...
few unpack calls into a compound unpack call.
Moved the functionality to get a list of valid chunks into get_chunks out from get_chunk_info.
2011-03-25 20:51:56 +08:00
Andrew Chin
df6124b425
Remove windows-style newlines
2011-03-24 19:51:33 -04:00
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
08597ab1c0
Fix performance regression caused by the lack of region/chunk cache at the world level
2011-03-19 02:48:57 +08:00
cbarber
1a57f53a39
Check if file exists before opening it
2011-02-26 21:41:59 -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
45dee1aa39
added MCRFileReader class to nbt.py, to handle new region files
2011-02-23 00:14:27 -05:00
Andrew Brown
d6f5afc40f
Added GPL license to all files.
...
If anyone is interested in using this software under different
conditions, contact me.
2010-09-21 22:51:12 -04:00
Andrew Brown
145d271195
files are opened in binary for windows compatibility
2010-08-28 19:02:37 -04:00
Andrew
2eca1a5fb5
initial comit
2010-08-22 10:16:10 -04:00