Skip to content

Commit 1d68964

Browse files
committed
- Updated benchmark numbers using drivers 430.86.
- Minor improvements to the build system (output directory and debug suffix consistency).
1 parent 5696743 commit 1d68964

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
1212
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
1313
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
1414

15+
foreach (OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES})
16+
string( TOUPPER ${OUTPUTCONFIG} OUTPUTCONFIG)
17+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${PROJECT_BINARY_DIR}/bin)
18+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${PROJECT_BINARY_DIR}/bin)
19+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${PROJECT_BINARY_DIR}/lib)
20+
endforeach (OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES)
21+
1522
if (WIN32)
1623

1724
add_definitions(-DUNICODE -D_UNICODE)

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ Command line arguments can be used to control various aspects of the application
2525
```
2626
> RayTracer.exe --benchmark --width 2560 --height 1200 --fullscreen --scene 1
2727
```
28-
Here are my results with the command above on two different computers using NVIDIA drivers 425.31.
28+
Here are my results with the command above on two different computers using NVIDIA drivers 430.86.
2929

30-
| Platform | Scene 1 | Scene 4 |
31-
| --- | ---: | ---: |
32-
| GeForce RTX 2080 Ti | 25.3 fps | 10.4 fps |
33-
| GeForce GTX 1080 Ti | 3.6 fps | 1.3 fps |
30+
| Platform | Scene 1 | Scene 2 | Scene 3 | Scene 4 |
31+
| --- | ---: | ---: | ---: | ---: |
32+
| GeForce RTX 2080 Ti | 38.0 fps | 19.8 fps | 57.2 fps | 14.4 fps |
33+
| GeForce GTX 1080 Ti | 3.8 fps | 2.0 fps | 4.0 fps | 1.3 fps |
3434

3535
## Building
3636

@@ -48,7 +48,7 @@ Most of the third party dependencies can be built using [Microsoft's vcpkg](http
4848
> ./build_linux.sh
4949
```
5050

51-
Assuming you have installed the [Vulkan SDK](https://vulkan.lunarg.com/) and [CMake](https://cmake.org/), the build should work out-of-the box for Visual Studio. On Linux, you may have to manually install additional dependencies for `vcpkg_linux.sh` to succeed.
51+
Assuming you have installed the [Vulkan SDK](https://vulkan.lunarg.com/), the build should work out-of-the box for Visual Studio. On Linux, you may have to manually install additional dependencies for `vcpkg_linux.sh` to succeed.
5252

5353
## References
5454

src/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ if (UNIX)
158158
set(extra_libs -lbacktrace -lstdc++fs)
159159
endif()
160160

161+
set_target_properties(${exe_name} PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
161162
target_link_libraries(${exe_name} PRIVATE ${Boost_LIBRARIES} glfw imgui::imgui ${Vulkan_LIBRARIES} ${extra_libs})
162-
163163
add_dependencies(${exe_name} Assets)
164+

0 commit comments

Comments
 (0)