Dee.cz
10-03-2007, 04:36 AM
Hello, has anyone tried to run other jobs in parallel to rendering?
#pragma omp parallel sections
{
#pragma omp section
{
OpenGL rendering
}
#pragma omp section
{
unrelated CPU number crunching
}
}I tried it with GF8 and VC+2005 and OpenGL code gets broken on many different places..e.g. uniform location is sometimes not found, although the same location in the same shader was found in previous frame.
#pragma omp parallel sections
{
#pragma omp section
{
OpenGL rendering
}
#pragma omp section
{
unrelated CPU number crunching
}
}I tried it with GF8 and VC+2005 and OpenGL code gets broken on many different places..e.g. uniform location is sometimes not found, although the same location in the same shader was found in previous frame.