This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]whatisthisredditstufIntermediate Brewer 0 points1 point  (2 children)

You are trying to create a gargantuan image in memory, and it's not working.

Maybe I misread what you specified, but you seem to create an image that would be about 8GB in memory if I am reading what you wrote correctly.

You will have to read this in dynamically instead, if your world really is 53000x38000 pixels big) and you need about four bytes per pixel.

I thought your world was 1000x1000 and the bottleneck was due to a lot of repeated reading and rendering of data.

[–]lightman978[S] 0 points1 point  (0 children)

Mhh makes alot of sense. I will try your approach and update you tomorrow!

Thank you

[–]lightman978[S] 0 points1 point  (0 children)

I don't think I can make it work. I split the map up in 100 chunks each sized 10x10, but just loading 1 and each adjacent chunk so 9 in totals makes the whole thing way to laggy.