vbjiny2434
@vbjiny2434
Reviews Written
2
Average Rating
5.0
13๋ ๊ฐ ์น ๊ธฐ๋ฐ ๋ชจ๋ํฐ๋ง ์์คํ (ํ๋ฐํธ์๋, ๋ฐฑ์๋ ๋ฑ)๊ณผ ์์ฉํ๋ก๊ทธ๋จ ๊ฐ๋ฐ์ ์ ๋ ํด์๋ค.
์ด์ C++, Win32์ ํน ๋น ์ ธ GUI์ ๊ฒ์ ํ๋ก๊ทธ๋๋ฐ์ผ๋ก ์๋ก์ด ๊ฟ์ ๊พธ๊ธฐ ์์ํ๋ฉฐ...
Posts
Q&A
Scene๊ณผ SceneManager ๊ฐ์ ์๊ฐ ์ค ํค๋ณด๋ ์ ๋ ฅ ์ค๋ฅ
์คํ๋ก ์ธํ ์ค๋ฅ์์ต๋๋ค. ํด๊ฒฐํ์ต๋๋ค.
- 0
- 1
- 128
Q&A
Window API ๊ฐ์ ์๊ฐ ์ค LARGE_INTEGER ํ์ ๋ณํ ์ค๋ฅ
#include "pch.h"#include "TimeManager.h"void TimeManager::Init(){LARGE_INTEGER frequency;LARGE_INTEGER prevCount;::QueryPerformanceFrequency(&frequency);::QueryPerformanceCounter(&prevCount); // CPU ํด๋ญfrequency = staticcast(frequency.QuadPart); // QuadPart ์ฌ์ฉprevCount = staticcast(prevCount.QuadPart);//::QueryPerformanceFrequency(reinterpret_cast(&_frequency));//::QueryPerformanceCounter(reinterpret_cast(&_prevCount)); // CPU ํด๋ญ}void TimeManager::Update(){LARGE_INTEGER currentCount;::QueryPerformanceCounter(ยคtCount);deltaTime = (staticcast(currentCount.QuadPart - prevCount)) / frequency;prevCount = staticcast(currentCount.QuadPart);_frameCount++;frameTime += deltaTime;if (_frameTime >= 1.f){fps = staticcast(_frameCount / _frameTime);_frameTime = 0.f;_frameCount = 0;}}์ฑ์งํผํฐ๊ฐ ์๋ ค์ค๋๋ก ์์ ๋ฐฉ์์ผ๋ก ๊ณ ์ณ์ ์คํํ๋๋ ์ค๋ฅ์์ด ์ ์๋๋๋๋ฐ์ ์ฝ๋๋ฅผ ๊ทธ๋๋ก ์ฌ์ฉํด๋ ๋ ๊น์?
- 0
- 3
- 185




