dma: some timing hacks
[pcsx_rearmed.git] / readme.txt
1
2 PCSX-ReARMed - yet another PCSX fork, ARM special
3
4 http://notaz.gp2x.de/pcsx_rearmed.php
5
6
7 About
8 -----
9
10 PCSX ReARMed is yet another PCSX fork based on the PCSX-Reloaded project,
11 which itself contains code from PCSX, PCSX-df and PCSX-Revolution. This
12 version is ARM architecture oriented and features MIPS->ARM recompiler by
13 Ari64, NEON GTE code and more performance improvements. It was created for
14 Pandora handheld, but should be usable on other devices after some code
15 adjustments (N900, GPH Wiz/Caanoo, PlayBook versions are also available).
16
17 PCSX ReARMed features ARM NEON GPU by Exophase, that in many cases produces
18 pixel perfect graphics at very high performance. There is also Una-i's GPU
19 plugin from PCSX4ALL project, and traditional P.E.Op.S. one.
20
21
22 Compiling
23 ---------
24
25 For libretro build, just doing "make -f Makefile.libretro" is recommended as
26 it's the way libretro team is building the core and only Makefile.libretro is
27 maintained by them.
28
29 For standalone build, './configure && make' should work for the most part.
30
31 When compiling for ARM, it's advisable to tell configure script the CPU, FPU
32 and ABI that matches your target system to get best performance, like this:
33
34 CFLAGS='-mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp' ./configure
35
36 Cross compilation should also work if kernel-style CROSS_COMPILE variable
37 is set:
38 CROSS_COMPILE='arm-none-linux-gnueabi-' ./configure
39
40
41 Usage
42 -----
43
44 There are several different frontends that can be built from source (one
45 generic and several platform specific), so usage slightly differs depending
46 on that. Most of them have a menu that can be used to run games and configure
47 the emulator.
48
49 Supported CD image formats:
50 - .bin/.cue
51 - .bin/.toc
52 - .img/.ccd/.sub
53 - .mdf/.mds
54 - .Z/.Z.table
55 - .bz/.bz.table
56 - .ZNX/.ZNX.table (partial)
57 - EBOOT.PBP (PSP, partial)
58 - .cbn
59
60 CDDA (CD audio) only supported when .cue/.toc/.ccd/.mds files are present.
61 There is support for redump.org .sbi files, which can be used instead of
62 .sub files to save space (name it the same as .cue/.bin, just use .sbi
63 extension). This is required for Libcrypt copy protected game support.
64
65 The emulator can simulate BIOS, which means BIOS files are not required,
66 however implementation is not complete and some games still need real BIOS
67 to work. To use real BIOS, copy uncompressed BIOS files to bios/ directory
68 which itself should be in main emulator directory.
69
70 For pandora, it should be:
71 [sd card]/pandora/appdata/pcsx_rearmed/bios/
72
73 When the file is copied, BIOS should be selected in Options->BIOS/Plugins menu.
74
75 On pandora, analog controllers are supported using nubs, but this is
76 disabled by default and needs to be enabled in 'Controls' menu.
77 There is also touchscreen based GunCon support, which also requires
78 appropriate controller selected in controls configuration.
79
80
81 Plugins
82 -------
83
84 GPU (graphics) and SPU (sound) plugins can be selected in
85 [BIOS/Plugins] menu:
86
87 builtin_gpu    - this is either Exophase's ARM NEON GPU (accurate and fast,
88                  available if platform supports NEON, like on pandora),
89                  gpu_peops or gpu_unai (depends on compile options).
90 gpu_peops.so   - P.E.Op.S. soft GPU, reasonably accurate but slow
91                  (also found with older emulators on PC)
92 gpu_unai.so    - Unai's plugin from PCSX4ALL project. Faster than P.E.Op.S.
93                  but has some glitches.
94 gpu_gles.so    - experimental port of P.E.Op.S. MesaGL plugin to OpenGL ES.
95                  Occasionally faster but has lots of glitches and seems to
96                  be rather unstable (may crash the driver/system).
97 builtin_spu    - P.E.Op.S. SPU plugin, optimized for ARM.
98 spunull.so     - NULL plugin, i.e. no sound emulation.
99                  May cause compatibility problems.
100
101
102 Cheats
103 ------
104
105 PCSX and cwcheat cheat formats are supported. PCSX .cht file can be loaded from
106 "extra stuff" menu after game is loaded, while cwcheat cheats are automatically
107 loaded from cheatpops.db file, if one is present in emulator's directory and
108 has any cheats for the loaded game in it.
109 If any of those files are successfully loaded, 'cheats' option will appear in
110 the main menu where it is possible to enable/disable individual cheats.
111
112
113 Changelog
114 ---------
115
116 r21 (2015-01-12)
117 + general: added ability to run SPU emulation on a separate thread, enabled it
118   by default when multicore CPU is detected. Significant effort was made to
119   avoid any compatibility problems which the old P.E.Op.S. implementation had.
120 + pandora: added ability to run SPU emulation on TI C64x DSP by using bsp's
121   c64_tools.
122 * libretro: fixed win32 build (mingw only)
123 * some tweaks for the scanline effect and other things
124
125 r20 (2014-12-25)
126 * fixed various sound accuracy issues, like effects in ff7-ff9
127   for standalone build, audio will no longer slow down when emu is not fast
128   enough and stutter instead, as the former behavior causes accuracy issues.
129   Old mode can be restored in SPU plugin config options, but is not recommended.
130 * savestates now save small parts of dynarec state to reduce dynarec related
131   slowdowns after savestate load
132 * menu: fixed file browser issues with filesystems like exfat-fuse
133 * menu: memcard manager: selected card is saved in config now
134 * standalone: added some basic scanline efect
135 * some CD image loading fixes
136 * converted asm code to be compatible with more assemblers, like Apple's gas
137 + libretro: added Makefile.libretro and support for various platforms like
138   iOS and QNX. Makefile.libretro is recommended way to do libretro builds
139   (patches from CatalystG, squarepusher, notaz and others, see git).
140 * some other minor fixes
141
142 r19 (2013-03-17)
143 + libretro: added region, multidisk support
144 * more work on cdrom code
145 * changed sound sync code
146 * fixed masking bugs in NEON GPU (in collaboration with Exophase)
147 * fixed some compatibility issues
148 * various other tweaks and fixes
149
150 r18 (2013-01-06)
151 * cdrom code greatly cleaned up
152 + new GLES output mode for ARM Linux/R-Pi
153 * various libretro improvements
154 * fixed several compatibility regressions
155 * various other tweaks and fixes
156
157 r17 (2012-11-24)
158 + added overlay support for generic Linux build
159 * attempted to fix sound breakage with PulseAudio
160 * fixed some regressions caused by hires mode code
161 * fixed some sound issues introduced in r9
162 * various other tweaks
163
164 r16 (2012-11-10)
165 + gpu_neon now has new hires rendering mode
166   (sometimes slow and occasionally glitchy)
167 + integrated M-HT's scale2x and eagle2x filters
168   (works for 512x256 or lower resolution games)
169 + pandora: added gamma/brightness control (requires SZ 1.52)
170 * pandora: some improvements for nub support
171 + added fast forward support
172 * fixed some glitches after loading savestates from r14 or earlier
173
174 r15 (2012-08-02)
175 * various compatibility fixes
176 * attempts to fix various SPU issues
177 * Exophase fixed blending issue in his NEON GPU
178 * fixed some potential crashes
179 * gpu_unai: merged range fix from Franxis
180 + added cheat support
181 + menu: pressing a key in file list now seeks to a file
182 + new code, fixes and refactoring to improve portability:
183   support RAM offset, translation cache in data segment,
184   SDL support, multiple sound output methods, configure script
185 * unified plugin names for all ports
186 + initial libretro support
187
188 r14 (2012-03-04)
189 * GLES GPU: implemented frameskip
190 * GLES GPU: merged some changes from schtruck/FPSE
191 * Caanoo: potential workaround for save corruption
192   (always exit emulator cleanly before turning off the console
193    to reduce chance of corruption)
194 * Caanoo: fixed a bug in GTE code (graphic glitches in some games)
195 * Caanoo: reworked vibration support, should support more games
196 * various refactoring/minor tweaks
197
198 r13 (2012-01-09)
199 * yet more fixes for regressions from earlier versions
200 * various fixes for NEON GPU (in collaboration with Exophase)
201 + NEON GPU supports interlace mode now, but it's not always
202   enabled due to frameskip glithes (can be changed in the menu)
203 * cdda should resume on savestate load now
204 * fixed date display in menus to honour locale
205 + pandora: added support for minimizing the emulator (while ingame only)
206
207 r12 (2011-12-24)
208 + new ARM NEON GPU rasterizer from Exophase (NEON hardware required)
209 + new GPU emulation code
210 + new analog controller configurator
211 * changed frameskip handling (again..), higher values supported
212 * fixed several more regressions from earlier versions
213 * changed cdrom code with hope for better compatibility
214 * sprite optimization for PCSX4ALL plugin
215 + Caanoo: added vibration support
216
217 r11 (2011-10-31)
218 + added Wiz support
219 * Caanoo: fixed tv-out
220 + Caanoo/Wiz: added scaling (16bpp only)
221 + Caanoo/Wiz: added touchscreen-as-buttons input (4 sections)
222 + added .cbin support
223 + added multidisk eboot support (use "next multidisk CD" in exras menu)
224 * some GTE related optimizations
225 * various other optimizations
226 + added some speed hack options for slower devices
227   (get more speed at stability and correctness loss)
228 * fixed several compatibility issues
229 * fixed a few crash situations
230 * various minor adjustments
231 * maemo: merged some code from Bonapart
232 * maemo: fixed BIOS issue (hopefully)
233
234 r10 (2011-10-10)
235 + added Caanoo port
236 + completely rewrote memory handlers
237 + added fixed frameskip option
238 + added ability to change PSX clock
239 + implemented GTE dead flag detection
240 * switched to larger timeslices for better performance
241 * fixed some cases of flickering
242 * fixed a crash in PCSX4ALL GPU plugin
243 * fixed several dynarec compatibility related issues (hopefully)
244 * fixed multiple SPU regressions from r9 and earlier
245 * fixed frame limiter issue that sometimes caused stuttering
246 * fixed some minor GUI issues
247
248 r9 (2011-08-13)
249 * fixed various dynarec integration issues that were causing instability
250 * merged latest Ari64 dynarec code for some performance improvement
251 * changed frameskip handling in builtin and PCSX4ALL plugins,
252   fixes some cases where it would not work
253 * merged PCSX4ALL 2.2 GPU code to it's plugin
254 * fixed PCSX4ALL GPU inline asm, was miscompiling for ARMv7.
255 + added CDDA handling for eboot format
256 * improved CDDA handling for all image formats that support it
257 * various compatibility/accuracy improvements
258 * optimized PEOPS SPU core
259 * various menu adjustments
260 * changed scaling options a bit, there are now two 4:3 options:
261   integer and fractional
262 + added some basic memory card manager, which allows to change
263   or remove cards (remove needed for Tenka)
264 + added GunCon support
265 + added gpuPEOPS2 plugin (peops rendering + new emulation code)
266
267 r8 (2011-03-22)
268 * improved recompiler performance for some games
269 * fixed a few recompiler related compatibility issues
270   (also fixes broken memcard support in some games)
271 * fixed some graphics problems caused by frameskip.
272   Note that not all problems were fixed, so if you see graphics
273   glitches try turning off frameskip or using different GPU plugin.
274 + added screenshot function
275 + added some code to attempt to sync with pandora's LCD better
276 * merged a few compatibility fixes from PCSX-Reloaded
277 * fixed and issue with external controllers
278 * added experimental ability to use nubs as buttons
279
280 r7 (2011-03-02)
281 + implemented most used GTE operations in NEON
282 * merged latest Ari64's recompiler patches
283 * removed some code from the recompiler that is unneeded for R3k
284 * added some special handlers for constant reads
285 * some moderate builtin GPU and SPU optimizations
286 + added redump.org SBI support
287 * tuned frameskip code again
288 * fixed one 'analog controller not working' issue
289 * fixed a crash in builtin gpu code
290 * fixed cdrom slowdown issue
291 * fixed my stupid bug in the recompiler that slowed down
292   recompilation a lot
293 * some other refactoring
294
295 r6 (2011-02-10)
296 + added analog controller support using nubs (disabled by default)
297 + added control config saving
298 + added support for ingame actions (eg. savestate load)
299 + added 'auto' region option and made it default
300 + added cd swap functionality
301 + added maemo frontend from Bonapart
302   (with some tuning, source code only)
303 * reworked key configuration to be less confusing
304 * fixed 'SPU IRQ wait' option sometimes causing noise
305   and turned it on by default
306 * fixed mono xa masking (was causing noise)
307 * fixed word access macros in dfxvideo (darkness problem)
308 * changed GPU DMA timing back to 1.92 levels
309 * backported more fixes from PCSX-Reloaded project
310   (mostly shalma's work, see GIT)
311 * fixed a few more recompiler issues
312 + fixed frameskip in builtin plugin
313
314 r5 (2011-01-31)
315 + added support for .bz format, also partial support for
316   .znx and eboot.pbp formats
317 + merged latest cdrom code from PCSX-Reloaded project
318 * fixed remaining savestate incompatibilities between PCSX4ALL
319   and P.E.Op.S. GPU plugins
320 * fixed channel disable preventing irqs in P.E.Op.S. SPU plugin
321 * fixed some alignment issues
322 + added handling for branches in delay slots
323 + fixed some unexpected drops to menu
324 * fixed lots of recompiler related issues (see GIT)
325 + added watchdog thread to detect emulator lockups
326 * minor frontend adjustments
327
328 r4 (2011-01-15)
329 + added real BIOS support (and various things for it to work)
330 * fixed various recompiler issues
331 + added interpreter option (useful to overcome dynarec bugs)
332 * fixed some memory card related issues with HLE bios
333 * rewrote frame limiter (old was sometimes sleeping needlessly)
334
335 r3 (2011-01-05):
336 + added Pickle's port of gpu-gles from psx4m project
337 + added PCSX4ALL gpu as a plugin
338 * improved gpu plugin support
339 + added savestate preview
340 * various frontend fixes
341
342 r2 (2010-12-29):
343 * fixed memcard paths
344 * fixed a keybind copy-paste bug
345 * properly implemented pad handling
346   (inputs no longer control both emulated pads at once)
347 * fixed a crash caused by framebuffer out of range access
348 * fixed SWL/SWR handling (usually resulted in graphic glitches)
349 * fixed BxxZAL (Medal of Honor)
350 * fixed alignment crash in color space conversion code (Lunar)
351 * fixed SWC2 occasional use of wrong address register (Parasite Eve)
352 * fixed firstfile() handling in HLE BIOS (broken memory cards in some games)
353 + added per-game configs (controls still not saved though)
354 + added simple plugin select interface to the menu
355
356 r1 (2010-12-25):
357 * initial release
358
359
360 Credits / License
361 -----------------
362
363 Emulator core:
364
365 (C) 1999-2003 PCSX Team
366         (c) 1998 Vision Thing
367         Linuzappz     <linuzappz@pcsx.net>
368         Shadow        <shadow@pcsx.net>
369         Pete Bernett  <psswitch@online.de>
370         NoComp        <NoComp@mailcity.com>
371         Nik3d
372         Akumax        <akumax@pcsx.net>
373
374 (C) 2005-2009 PCSX-df Team
375         (c) Ryan Schultz <schultz.ryan@gmail.com>
376         (c) Andrew Burton <adb@iinet.net.au>
377         (c) Stephen Chao <schao@myrealbox.com>
378         (c) Marcus Comstedt <marcus@mc.pp.se>
379         Stefan Sikora <hoshy@schrauberstube.de>
380
381 (C) 2009-2011 PCSX-Reloaded Team
382         edgbla (Root counters, various core/plugin fixes)
383         shalma (GTE Divider, many core improvements, sound plugin fixes)
384         Firnis (GTE code from PCSX-Revolution Project)
385         Gabriele Gorla (MDEC decoder)
386         Peter Collingbourne (Various core/psxbios fixes)
387         Dario, NeToU, siveritas (Various bugfixes)
388         Wei Mingzhi (Maintainer, input plugin, iso/cheat support, misc stuff)
389
390 NEON GPU plugin:
391         (C) 2011-2012 Exophase
392         (C) 2011-2012 notaz
393
394 PCSX4ALL GPU plugin:
395         (C) 2010 PCSX4ALL Team
396         (C) 2010 Unai
397         Franxis <franxism@gmail.com>
398         Chui <sdl_gp32@yahoo.es>
399
400 GLES plugin (psx4m project):
401         (C) 1999-2009 by Pete Bernert
402         EQ
403         Olli Hinkka
404         Proger
405         Pickle
406
407 P.E.Op.S. GPU plugin:
408         (C) Pete Bernert and the P.E.Op.S. team
409
410 P.E.Op.S. SPU plugin:
411         (C) Pete Bernert and the P.E.Op.S. team
412         (C) SPU2-X, gigaherz, Pcsx2 Development Team
413         shalma
414         notaz
415
416 MIPS->ARM recompiler:
417         (C) 2009-2011 Ari64
418
419 integration, optimization and frontend:
420         (C) 2010-2012 notaz
421
422 Special thanks to Mednafen author, shalma/gretar and Rokas for
423 various help while developing this emulator.
424
425 Some implementation ideas (and maybe code?) likely originated from
426 MAME/smf/pSXauthor and were integrated by various people to PCSX.
427
428 Source code is released under GNU GPL license, version 2 or later.
429 See COPYING included in the archive (pandora version's .pnd can be
430 extracted using unsquashfs).
431
432 The source code is available in a GIT repository at:
433
434 git://notaz.gp2x.de/~notaz/pcsx_rearmed.git
435