Hi folks.
So, I recently began plugging in some textures into my biggest level yet. I have about 20k by 20k pixels worth of graphics to get in there.
I've split the large image into about 20 4kx4k textures. I can add about 10 of them and my level editor works no problem. As I approach 15, my graphics card starts bugging out and I hit the Windows TDR limit (
https://msdn.microsoft.com/en-us/library/windows/hardware/ff570087(v=vs.85).aspx).
I've increased my TDR limit, but I'm still hitting it, and I also feel that it doesn't really solve the issue which seems to be: I am asking too much of my GPU.
The files altogether are only 12 MB. I have about 35 MB worth of graphics in another level and it runs smooth as butter, both in my level editor and in game. The texture sizes are smaller, and I know(?) SFML only draws what's on screen, so it might be that with these large texture sizes SFML has to draw the whole thing when only a little bit might actually be on screen. That's my best guess so far.
Does anyone have any recommendations for how to proceed?
EDIT: Further thought: If I should just use smaller textures, does anyone know of a good automated way to split a large picture into several small ones?