Skip to content

Commit

Permalink
- Updated benchmark numbers using drivers 430.86.
Browse files Browse the repository at this point in the history
- Minor improvements to the build system (output directory and debug suffix consistency).
  • Loading branch information
GPSnoopy committed Jul 7, 2019
1 parent 5696743 commit 1d68964
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)

foreach (OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES})
string( TOUPPER ${OUTPUTCONFIG} OUTPUTCONFIG)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${PROJECT_BINARY_DIR}/lib)
endforeach (OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES)

if (WIN32)

add_definitions(-DUNICODE -D_UNICODE)
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ Command line arguments can be used to control various aspects of the application
```
> RayTracer.exe --benchmark --width 2560 --height 1200 --fullscreen --scene 1
```
Here are my results with the command above on two different computers using NVIDIA drivers 425.31.
Here are my results with the command above on two different computers using NVIDIA drivers 430.86.

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

## Building

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

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.
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.

## References

Expand Down
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ if (UNIX)
set(extra_libs -lbacktrace -lstdc++fs)
endif()

set_target_properties(${exe_name} PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
target_link_libraries(${exe_name} PRIVATE ${Boost_LIBRARIES} glfw imgui::imgui ${Vulkan_LIBRARIES} ${extra_libs})

add_dependencies(${exe_name} Assets)

0 comments on commit 1d68964

Please sign in to comment.