Cannot create Canvas: Texture format cannot be rendered to on this system.
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 4
- Joined: Tue Oct 01, 2019 4:44 am
Cannot create Canvas: Texture format cannot be rendered to on this system.
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.
Re: Cannot create Canvas: Texture format cannot be rendered to on this system.
6 RGBA8 Canvases of 12800x12800 pixels require ~4 GB of VRAM. Not a surprising result.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.
- zorg
- Party member
- Posts: 3470
- 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.
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.
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 True 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.
Who is online
Users browsing this forum: Google [Bot], rabbitboots and 8 guests