| 110 | void loadVolumeData(char *exec_path); |
| 111 | |
| 112 | void computeFPS() |
| 113 | { |
| 114 | frameCount++; |
| 115 | fpsCount++; |
| 116 | |
| 117 | if (fpsCount == fpsLimit) { |
| 118 | char fps[256]; |
| 119 | float ifps = 1.f / (sdkGetAverageTimerValue(&timer) / 1000.f); |
| 120 | sprintf(fps, "%s: %3.1f fps", sSDKsample, ifps); |
| 121 | |
| 122 | glutSetWindowTitle(fps); |
| 123 | fpsCount = 0; |
| 124 | |
| 125 | fpsLimit = ftoi(MAX(1.0f, ifps)); |
| 126 | sdkResetTimer(&timer); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | // render image using CUDA |
| 131 | void render() |
no test coverage detected