Hi,
I already found an old topic of someone trying to get two windows to work in Windows using specific platform calls (win32) (not glut)
However, my problem is different so I decided to post a new thread.
I’m running two windows on a single thread. However, the second window does not always render everything that the first window renders and sometimes nothing at all.
For example, I have one in perspective with 20000 spheres and the other one in orthographic with the same amount. so it doesn’t seem to render all.
If I change the spheres for cubes (cubes build using triangles) , the second screen does not render anything at all.
I’m using the OpenGL Bible 5th edition code to create windows (chapter 13)
I’m been debugging this for a bit now, and I’m beginning to think that it may be that is not enough time to render both screens.
Assuming that is not some stupid bug that I created, I can think of the following and If I can get feedback, would be great!
One possible solution that I have is to thread. However, threading will have to be safe, since I can only write to the video card one at time (as far as I know) with wglMakeCurrent . This means that it may not be sufficient.
Changing my computer is not an option at this time but is very fast. Intel xeon 2.8ghz quad core with 12GB ram (running win7 x64 by the way)
The other one is to add a more powerful video card. Here I have the option to get something a lot better. What I have now is ATI FIREPRO V7800 (FireGL) . I also heard that you can chain the video cards, but I think that’s for more heavy gpu work.
The third option is to optimized my code (maybe should be my first) and try to figure out what can I do in gpu
I’m free to use any openGL. I’m using OpenGL 3.3 functionalities (the stuff in the gl bible 5th edition)
I’m not an expert so any help would be greatly appreciated.
Now, what is the final objective. I want to have medical imagining or other imagining in perspective view + orthographic view in two separate windows (two monitors) the images come in 256x256 by 256 slices
I also would have some 3d stuff, but mainly what I mention already.
please help. has anyone ran into this problem when rendering too many objects?
If I had two video cards, could I write to each one at the same time in windows. is this even possible? (it is a crazy question.)
thanks,
Francisco