mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-10 06:41:37 +00:00
Minor adjustments
This commit is contained in:
parent
a9d1999b46
commit
3572d81010
1 changed files with 29 additions and 1 deletions
|
@ -24,7 +24,35 @@ void GPURaytracer::Raytrace(DoomLevelMesh* levelMesh)
|
|||
{
|
||||
if (rdoc_api) rdoc_api->StartFrameCapture(nullptr, nullptr);
|
||||
|
||||
// To do raytrace stuff here!
|
||||
#ifdef WIN32
|
||||
LARGE_INTEGER s;
|
||||
QueryPerformanceCounter(&s);
|
||||
#endif
|
||||
|
||||
printf(" Ray tracing in progress\n");
|
||||
printf(" [");
|
||||
|
||||
try
|
||||
{
|
||||
// To do raytrace here
|
||||
printf(".");
|
||||
printf(".");
|
||||
printf(".");
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
printf("]\n");
|
||||
throw;
|
||||
}
|
||||
printf("]\n");
|
||||
|
||||
#ifdef WIN32
|
||||
LARGE_INTEGER e, f;
|
||||
QueryPerformanceCounter(&e);
|
||||
QueryPerformanceFrequency(&f);
|
||||
printf(" GPU ray tracing time was %.3f seconds.\n", double(e.QuadPart - s.QuadPart) / double(f.QuadPart));
|
||||
#endif
|
||||
printf(" Ray trace complete\n");
|
||||
|
||||
if (rdoc_api) rdoc_api->EndFrameCapture(nullptr, nullptr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue