Introduce new timer based on vsync

This commit is contained in:
2023-08-27 21:29:43 +02:00
parent db2e5543df
commit c40a8f44a5
6 changed files with 129 additions and 22 deletions

View File

@@ -16,11 +16,13 @@ namespace JabyEngine {
namespace GPU {
struct Display {
#ifdef JABYENGINE_PAL
static constexpr size_t Width = 320;
static constexpr size_t Height = 256;
static constexpr size_t Width = 320;
static constexpr size_t Height = 256;
static constexpr uint32_t frames_per_sec = 50;
#else
static constexpr size_t Width = 320;
static constexpr size_t Height = 240;
static constexpr size_t Width = 320;
static constexpr size_t Height = 240;
static constexpr uint32_t frames_per_sec = 50;
#endif
static uint8_t current_id;