Hello everyone, I feel bad to be posting another question but I am so close...
I have made a program to create the mandelbrot fractal using a shader. The program works fine unless you increase the resolution to around 10k by 10k. At this point The program crashed. I thought maybe the resolution was too high for the gpu, so I altered my program to make 4 textures, and stitch them all together in the image save function, alas I am getting similar problems.
this is the code that is crashing:
sf::Image master;
try
{
master.create(m_width, m_height);
}
catch (bad_alloc& ba)
{
cerr << "bad_alloc caught: " << ba.what() << endl;
}
sf::Vector2u test = master.getSize();
master.copy(one,0,0,rect,true);
no bad allocation is being thrown, the program crashes at master.copy but only the high resolutions
cause a crash.
I have 16GB of ram and a Radeon 7950HD so I really doubt it is a memory limitation. Could this maybe be a 32 bit issue or is there some sfml limitation I do not know about.
When debugging the error produced is:
Debug assertion failed. C++ vector subscript out of range.
This was at a resolution of 15360x8640
Thanks