mirror of
https://github.com/open-goal/jak-project
synced 2026-05-27 08:09:29 -04:00
083202929c
* begin work * work * working objs * exporting * it works * before some time of day fixes * add time of day interp and also fix zbuffer * some small blending fixes * improve randomess * clean up extraction and missing blend mode * culling, time of day, more level fixes * more cleanup * cleanup memory usage * windows fix
17 lines
210 B
C++
17 lines
210 B
C++
#include "os.h"
|
|
|
|
#ifdef __linux__
|
|
|
|
#include <sys/resource.h>
|
|
|
|
size_t get_peak_rss() {
|
|
rusage x;
|
|
getrusage(RUSAGE_SELF, &x);
|
|
return x.ru_maxrss * 1024;
|
|
}
|
|
|
|
#else
|
|
size_t get_peak_rss() {
|
|
return 0;
|
|
}
|
|
#endif |