Adding some parallelism, Not working yet

This commit is contained in:
2019-12-17 21:24:03 +02:00
parent d156fb4044
commit a47ccbc3cd
19 changed files with 16427 additions and 10 deletions
+7
View File
@@ -2,6 +2,7 @@
#include "util_window.h"
#include "renderer.h"
#include "ctime"
#include "kernels.h"
const int screen_width = 1000;
const int screen_height = 1000;
@@ -23,8 +24,13 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
ShowWindow(hwnd, nCmdShow);
init_camera();
init_kernels();
//camera.ApplyChanges();
//render();
//Update();
SetTimer(hwnd, NULL, 1000 / TARGET_FRAMERATE, (TIMERPROC)FixedUpdate);
while (GetMessage(&Msg, NULL, 0, 0))
@@ -83,6 +89,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
break;
case WM_CLOSE:
DestroyWindow(hwnd);
destroy_kernels();
break;
case WM_DESTROY:
PostQuitMessage(0);