mirror of
https://github.com/open-goal/jak-project.git
synced 2024-11-28 00:40:42 +00:00
5135ea9659
* first pass * first pass at shrinking fr3s * only need to load vertices once * avx2 detect and switch * fix build * another ifx' * one more * fix the sky and stupid math bug in size check
20 lines
333 B
C++
20 lines
333 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <string>
|
|
|
|
// Note: these are not implemented on windows and will return zero.
|
|
size_t get_peak_rss();
|
|
void setup_cpu_info();
|
|
|
|
struct CpuInfo {
|
|
bool initialized = false;
|
|
bool has_avx = false;
|
|
bool has_avx2 = false;
|
|
|
|
std::string brand;
|
|
std::string model;
|
|
};
|
|
|
|
CpuInfo& get_cpu_info();
|