mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-25 11:45:53 +01:00
Some Pandora fine-tunning
This commit is contained in:
parent
16d6cb99fa
commit
45429a88d8
15
Sources/Engine/Engine.cpp
Normal file → Executable file
15
Sources/Engine/Engine.cpp
Normal file → Executable file
|
@ -127,6 +127,9 @@ static void DetectCPU(void)
|
||||||
{
|
{
|
||||||
#if (defined USE_PORTABLE_C) // rcg10072001
|
#if (defined USE_PORTABLE_C) // rcg10072001
|
||||||
CPrintF(TRANSV(" (No CPU detection in this binary.)\n"));
|
CPrintF(TRANSV(" (No CPU detection in this binary.)\n"));
|
||||||
|
#ifdef PLATFORM_PANDORA
|
||||||
|
sys_iCPUMHz = 400; // conservative, ARM -> x86 cpu translation is not 1 to 1.
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
char strVendor[12+1];
|
char strVendor[12+1];
|
||||||
|
@ -398,7 +401,19 @@ static void SetupMemoryManager(void)
|
||||||
sys_iRAMSwap = ms.dwTotalPageFile/MB;
|
sys_iRAMSwap = ms.dwTotalPageFile/MB;
|
||||||
|
|
||||||
#elif (defined PLATFORM_UNIX)
|
#elif (defined PLATFORM_UNIX)
|
||||||
|
#ifdef PLATFORM_PANDORA
|
||||||
|
sys_iRAMPhys = 256; // conservative here, there is 256MB models and 512MB...
|
||||||
|
FILE* esrev = fopen("/etc/powervr-esrev", "r");
|
||||||
|
if (esrev) {
|
||||||
|
int rev = 0;
|
||||||
|
fscanf(esrev,"%d", &rev);
|
||||||
|
if (rev==3 || rev==5)
|
||||||
|
sys_iRAMPhys = 512;
|
||||||
|
fclose(esrev);
|
||||||
|
};
|
||||||
|
#else
|
||||||
sys_iRAMPhys = 1; // !!! FIXME: This is bad. Bad. BAD.
|
sys_iRAMPhys = 1; // !!! FIXME: This is bad. Bad. BAD.
|
||||||
|
#endif
|
||||||
sys_iRAMSwap = 1;
|
sys_iRAMSwap = 1;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user