!

[PSP] PCSP 0.5.1 - jednordzeniowy problem

[0] @ Sobota, 29 Stycznia 2011 01:14CET

[PSP] PCSP 0.5.1 - jednordzeniowy problem

Jeżeli jesteś posiadaczem jednojajowego procesora to całkiem możliwe, że nie nacieszysz się najnowszą wersją tego udawacza PSP - błąd, a raczej niedopatrzenie, powoduje, że emulator może nam porządnie dać do wiwatu. Fix już jest ponoć w drodze, więc być może już jutro problem zostanie rozwiązany.

Ok I think I understand what it happens. The emulator has a state: normally it is RUNNING when interpreting a PSP game. Some events like Audio, Vsync, Clock may occur and try to set this state to an event state so the emulator thread is leaving the interpreter to handle the event. In a multi-core processor, each event has its time-critical thread running on one core whereas the emulator thread is running on another core. So a core tries to set a state to make the other core to suspend interpretation and handle event in the emulator thread. I made some changes in code prior the correction I did for 0.5.1 because I feared an event state might be set when the emulator was already set to another event set (a vsync event occuring when the emulator state is set to an audio event state) and might fix the freeze issue. It didn't but I left this code after fixing the real issue. However I never realized that code might not work properly for a mono-core as those threads will be executed in a sequential order and might create some hell slowness or worst responsiveness (because of an active polling added).

wstecz29/01/2011 01:14
Komentarze
... bez komentarza
Ostatnio dodane pliki
Newsy Linkownia Emulatory na PC Wideoteka Screenshoty Bajtek Reduks Ready.Run

© Try2emu 1999 - 2024 | Krzysztof 'Faust' Karkosza Kontakt Polityka Prywatności OWU