Cannot create Canvas: Texture format cannot be rendered to on this system.

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
sherlockholmes221b
Prole
Posts: 4
Joined: Tue Oct 01, 2019 4:44 am

Cannot create Canvas: Texture format cannot be rendered to on this system.

Post by sherlockholmes221b »

I have really big terrain in my game. It's exactly 16384 chunks (128x128) and each chunk has 16384 (128x128) tiles. The problem is, that I use love canvases to load and display chunks. Every Canvas is 12800x12800 pixels. When I try to create the world, the game crashes on generating sixth canvas. Has anyone got an idea on how to fix it? I can resize the chunks, but if the game now crashes at 6th chunk, even the 0.5 scale won't do much.
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: Cannot create Canvas: Texture format cannot be rendered to on this system.

Post by grump »

sherlockholmes221b wrote: Wed Apr 01, 2020 6:41 pm Every Canvas is 12800x12800 pixels. When I try to create the world, the game crashes on generating sixth canvas.
6 RGBA8 Canvases of 12800x12800 pixels require ~4 GB of VRAM. Not a surprising result.
User avatar
zorg
Party member
Posts: 3436
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Cannot create Canvas: Texture format cannot be rendered to on this system.

Post by zorg »

i would rethink how you store your world, because that's not feasible even with modern computers.
i'm assuming all the 16k*16k tiles aren't all unique, so store those as indices, and have one or more smaller canvases that store the unique tile textures instead. And also only load in the nearest chunks, and "unload"/free up the ones that went out of range.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 51 guests