Timeline for How can I speed up slow loading of big levels?
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 15, 2018 at 17:41 | vote | accept | CommunityBot | ||
| S Dec 6, 2017 at 12:44 | history | mod moved comments to chat | |||
| S Dec 6, 2017 at 12:44 | comment | added | DMGregory♦ | Comments are not for extended discussion; this conversation has been moved to chat. | |
| Dec 5, 2017 at 16:48 | comment | added | Philipp | @appmaker1358 I think we need more information about how your XML file is structured. Please add that information to the question. Also mention how far you are able/willing to change the XML format if necessary. | |
| Dec 5, 2017 at 16:34 | history | edited | Philipp | CC BY-SA 3.0 | added 112 characters in body |
| Dec 5, 2017 at 16:30 | comment | added | Stephan | To Philipp's point about storing chunks as separate files, Minecraft takes this approach. A middle ground would be to have 2 levels of subdivision. a Region file which contains data for 9 Chunks. You would load a Region file into memory, and parse and load the Chunks as needed based on th player location. In this way, at most you'll have 4 region xml loaded at a time (player standing on region corner) | |
| Dec 5, 2017 at 16:20 | comment | added | user110167 | Both are specifick to xml parser, only the 45 seconds is only the reading in part and not the checking its values part. | |
| Dec 5, 2017 at 16:15 | comment | added | Philipp | @appmaker1358 Is the time taken by the XML parser library included in the 45 seconds or the 12 minutes? | |
| Dec 5, 2017 at 16:13 | comment | added | user110167 | .....so i need a way to only read the nodes with the x and y within range. I think it should be possible as it takes a short time for the parser to internally parse the file. So Do you know a way to do that without having seperate files? | |
| Dec 5, 2017 at 16:12 | comment | added | user110167 | Hi, thanks for your reply! I am sure it is related to xml loading and i do really want to use xml. The thing is is that the file itself is loaded in 45seconds, or relatively fast. But then reading the parsed data and putting it in a array takes 12min, or way longer. So i would need a way of only reading the data wich i need, then those beginning 45 seconds and then an additional 2min approximately would be axeptable. But if i have to check every node for the right x and y cordinates i could aswell just load the entire file, | |
| Dec 5, 2017 at 15:56 | history | edited | Philipp | CC BY-SA 3.0 | added 44 characters in body |
| Dec 5, 2017 at 15:46 | history | answered | Philipp | CC BY-SA 3.0 |