Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Periodic several second freezes with Raspberry Pi 3
06-04-2016, 12:15 AM
Post: #9
RE: Periodic several second freezes with Raspberry Pi 3
(06-03-2016 01:27 PM)[Unknown] Wrote:  Oh - I just had an idea. We memory map an anonymous file to represent PSP RAM. This shouldn't be written to disk at all, but maybe it is. That would write quite often, if it was getting flushed to disk for some reason.

https://github.com/hrydgard/ppsspp/blob/...a.cpp#L184

-[Unknown]

This looks to be the issue. I had PPSSPP save this to a tmpfs and everything runs smooth now.

I changed the block at https://github.com/hrydgard/ppsspp/blob/...na.cpp#L93 from:
Code:
#ifndef _WIN32
// do not make this "static"
#ifdef MAEMO
std::string ram_temp_file = "/home/user/gc_mem.tmp";
#elif defined(BB)
std::string ram_temp_file = "/home/root/gc_mem.tmp";
#else
std::string ram_temp_file = "/tmp/gc_mem.tmp";
#endif
#elif !defined(_XBOX)
SYSTEM_INFO sysInfo;
#endif

to

Code:
#ifndef _WIN32
// do not make this "static"
#ifdef MAEMO
std::string ram_temp_file = "/home/user/gc_mem.tmp";
#elif defined(BB)
std::string ram_temp_file = "/home/root/gc_mem.tmp";
#elif defined(RPI)
std::string ram_temp_file = "/dev/shm/gc_mem.tmp";
#else
std::string ram_temp_file = "/tmp/gc_mem.tmp";
#endif
#elif !defined(_XBOX)
SYSTEM_INFO sysInfo;
#endif

I'm not quite sure if this should be based on RPI or RASPBIAN being defined. I don't feel like playing around with other distros tonight.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Periodic several second freezes with Raspberry Pi 3 - arutema - 06-04-2016 12:15 AM

Forum Jump: