free ram and tyrobj wip

This commit is contained in:
h4570
2022-07-26 19:32:20 +02:00
parent 70028a8f18
commit 7a9b294945
15 changed files with 550 additions and 27 deletions
+6
View File
@@ -11,6 +11,7 @@
#pragma once
#include <tamtypes.h>
#include <stddef.h>
#include "time/timer.hpp"
namespace Tyra {
@@ -25,8 +26,13 @@ class Info {
const u32& getFps() const { return fps; };
/** @return Available RAM in MB */
float getAvailableRAM();
private:
float calcFps();
void* allocateLargestFreeRAMBlock(size_t* size);
size_t getFreeRAMSize();
u8 fpsDelayer;
u32 fps;