MCPcopy Create free account
hub / github.com/Inori/GPCS4

github.com/Inori/GPCS4 @v0.2.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.3 ↗ · + Follow
35,389 symbols 53,103 edges 3,704 files 1,652 documented · 5% updated 2y agov0.2.1 · 2022-06-07★ 2,0172 open issues

Browse by type

Functions 14,553 Types & classes 20,836
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

logo


GPCS4

A PlayStation 4 emulator which was just started.
A project done for fun, and for technical research.

The only reason I have started this project is for learning 3D graphics.
It's not intended to become a serious application.

Latest progress

Basic Compute
Support simple compute shader, compute ring, cube maps.
Use Direct Input to emulate pad.

WAD Demo
First commercial game support, We are Doomed. Thanks to our developers.
It's not playable now, since the FPS is very low, because there are currently no optimizations.
GPCS4 will recompile all the shaders, untiling all the textures and upload all the buffers every frame, making it less efficient.
Besides, there are still some problems in the game pad emulation.
We will try to resolve these issues incrementally.

Roadmap

  • Graphics

    • Gnm reverse engineering > Parsing PM4 command buffers and some other formats to recover the original Gnm calls.
      Still a lot of work.
    • Vulkan backend > Translate Gnm calls into vulkan calls. Far from complete.
    • Shader recompiler > Translate GCN bytecode into Spir-V bytecode. Far from complete.
  • Hardware

    • Audio > Basic implementation.
    • Gamepad > Basic implementation.
  • System

    • Dynamic linker > TLS support is not complete yet, and possibly neither are some other initialization functions.
    • System resource management, ie. Thread, virtual memory, synchronize object, file, clock. > For functions which do not require system resource (e.g: math functions),
      we'll use the system libraries directly.
      For others, we will try to implement them, one by one.

Join

Read our Developer's Guide

For more details you could join our discord server to contact me, or if you are used to Tencent QQ/TIM, just join our group. There you can get more resources which are useful for contributing.

Gitter: GPCS4EMU
Discord: GPCS4 (Currently not maintained)
Tencent QQ/TIM Group Number: 470865218

Build

To run or develop GPCS4, a CPU supporting AVX instruction set as well as a graphics card supporting Vulkan 1.3 are required.
Currently, only Windows build is supported.

For more details, see the Developer's Guide

Credits

DXVK
uplift

License

GPL-3.0

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Class 20,234
Method 7,568
Function 6,985
Enum 589
Struct 5
TypeAlias 5
Interface 2
FuncType 1

Languages

C++95%
C4%
Python1%
Go1%

Modules by API surface

3rdParty/xbyak/xbyak_mnemonic.h1,605 symbols
3rdParty/boost/boost/typeof/vector150.hpp453 symbols
3rdParty/boost/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp434 symbols
3rdParty/glm/gtx/vec_swizzle.hpp336 symbols
3rdParty/xbyak/xbyak.h315 symbols
3rdParty/boost/boost/typeof/vector100.hpp303 symbols
3rdParty/spdlog/fmt/bundled/chrono.h286 symbols
3rdParty/fmt/include/fmt/chrono.h286 symbols
3rdParty/spdlog/fmt/bundled/core.h281 symbols
3rdParty/fmt/include/fmt/core.h281 symbols
GPCS4/Graphics/SpirV/SpirvModule.cpp269 symbols
3rdParty/boost/boost/unordered/detail/implementation.hpp256 symbols

Datastores touched

(mongodb)Database · 1 repos

For agents

$ claude mcp add GPCS4 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page