Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualrumpfi88

Posted 25 February 2012 - 12:55 PM

My graphic engine (by using ray tracing) is pretty slow all by itself, so I want to try to split it into other programs running at the same time (= distributed rendering). I once tried "system()" function in another program to start the engine, and it worked.

Unfortunately it only starts 1 program after another when I'm using this code (command in Windows):

#include <iostream>
#include <cstdlib>

using namespace std;

int main()
{
   string cmd = "MyGraphicEngine.exe";
   system(cmd.c_str());
   system(cmd.c_str());

return 0;
}

Is there a possibility to run "MyGraphicEngine.exe" twice at the same time?

lg rumpfi88

#1rumpfi88

Posted 25 February 2012 - 12:53 PM

My graphic engine (by using ray tracing) is pretty slow all by itself, so I want to try to split it into other programs running at the same time (= distributed rendering). I once tried "system()" function in another program to start the engine, and it worked.

Unfortunately it only starts 1 program after another when I'm using this code (command in Windows):

#include <iostream>
#include <cstdlib>

using namespace std;

int main()
{
string cmd = "MyGraphicEngine.exe";
system(cmd.c_str());
system(cmd.c_str());

return 0;
}

Is there a possibility to run "MyGraphicEngine.exe" at the same time?

lg rumpfi88

PARTNERS