diff --git a/README.md b/README.md index 3cba736..e1afa76 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Realtime Software Renderer -Optimized realtime software renderer. I tried to optimize it so that it can render Sponza Palace at 30fps on my machine. It uses multithreading and vector/SIMD instructions. +Optimized realtime software renderer. Renders Sponza Palace at 30FPS(on Ryzen 5800U), it was optimized using SIMD instructions and multithreading. ![screenshot1](assets/Screenshot1.png) ![screenshot2](assets/Screenshot2.png) diff --git a/multimedia.cpp b/base_multimedia.cpp similarity index 99% rename from multimedia.cpp rename to base_multimedia.cpp index b5b458b..667f342 100644 --- a/multimedia.cpp +++ b/base_multimedia.cpp @@ -1,6 +1,6 @@ #include "base.cpp" #include "base_unicode.cpp" -#include "os_windows.cpp" +#include "base_os_windows.cpp" #include #include diff --git a/os_windows.cpp b/base_os_windows.cpp similarity index 100% rename from os_windows.cpp rename to base_os_windows.cpp diff --git a/build.bat b/build.bat index c6d53cf..5295970 100644 --- a/build.bat +++ b/build.bat @@ -1,5 +1,5 @@ @echo off pushd %~dp0 -clang main.cpp -O2 -mfma -mavx2 -Wall -Wno-unused-function -Wno-missing-braces -fno-exceptions -fdiagnostics-absolute-paths -Wno-deprecated-declarations -I".." -g -o main.exe -Wl,user32.lib +clang main.cpp -O2 -mfma -mavx2 -Wall -Wno-unused-function -Wno-missing-braces -fno-exceptions -fdiagnostics-absolute-paths -Wno-deprecated-declarations -g -o main.exe -Wl,user32.lib popd \ No newline at end of file diff --git a/main.cpp b/main.cpp index aca0635..27e4d68 100644 --- a/main.cpp +++ b/main.cpp @@ -1,7 +1,5 @@ #include "obj_dump.cpp" -// #include "multimedia.cpp" -// #include "obj.cpp" #include "vec.cpp" #include "work_queue.cpp" #define PROFILE_SCOPE(x) diff --git a/obj_dump.cpp b/obj_dump.cpp index d983383..77b90e4 100644 --- a/obj_dump.cpp +++ b/obj_dump.cpp @@ -1,4 +1,4 @@ -#include "multimedia.cpp" +#include "base_multimedia.cpp" #include "obj.cpp" #define STBI_ASSERT assert