Enhance memory management and logging for system modules #32

Closed
github-bot wants to merge 19 commits from gh-pr/32/head into gh-pr/32/base
Owner

@⁠Pouare514 on GitHub · 2026-07-17 21:02 UTC · original
1 → main · +28575 −507 · 124 files · 19 commits · closed without merging

  • Implement RegisterSystemModuleMemory for improved memory registration of system modules.
  • Add SumBytesOfType to track memory usage by virtual range types.
  • Update logging to provide detailed insights into memory types and sizes during queries.
  • Refactor memory range checks to accommodate both program and system module types for accurate management.
**@⁠Pouare514** on GitHub · 2026-07-17 21:02 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/32) `1` → `main` · +28575 −507 · 124 files · 19 commits · closed without merging - Implement `RegisterSystemModuleMemory` for improved memory registration of system modules. - Add `SumBytesOfType` to track memory usage by virtual range types. - Update logging to provide detailed insights into memory types and sizes during queries. - Refactor memory range checks to accommodate both program and system module types for accurate management.
Wire up GitHub Actions, compatibility reporting, SaveData persistence, PlayGo stubs, import telemetry, GPU/shader/audio enhancements, and a Windows build script.
- Updated .gitignore to include additional build artifacts and IDE-specific files.
- Changed build directory references from `_Build` to `build` in README.md, CI workflow, VSCode launch configurations, and build script for clarity and uniformity.
- Implement automatic disabling of Medal Vulkan layers in Windows to prevent startup crashes.
- Update README.md with detailed troubleshooting steps for Vulkan layer issues, including registry cleanup instructions.
- Refactor Vulkan descriptor handling to support push constant ranges more effectively across graphics and compute pipelines.
- Improve error logging for C++ exceptions related to Medal hooks.
- Adjust main loop exit conditions to provide clearer logging on initialization failures.
- Introduce logging for fatal Windows exceptions, including stack buffer overrun and heap corruption.
- Update exception handling to differentiate between C++ exceptions and fatal unhandled exceptions.
- Enhance README.md with troubleshooting steps for diagnosing game closure issues related to exceptions.
- Implement crash diagnostics installation in the main application for better error handling.
- Update README.md to include new troubleshooting steps for hybrid laptop GPU configurations and clarify logging outputs for fatal exceptions.
- Modify logging to output Vulkan selected device information to both console and logs for improved visibility.
- Enhance CI workflow to dynamically set and verify Vulkan SDK installation, ensuring the correct version is used.
- Update README.md to clarify Vulkan SDK path requirements and configuration steps for users.
- Modify CMakeLists.txt to improve library search paths for Vulkan SDK, enhancing compatibility across different environments.
- Update .gitignore to exclude additional local IDE files and build logs, improving project cleanliness.
- Modify CI workflow to include RDNA2 ISA coverage report generation and shader recompiler tests, enhancing testing coverage.
- Refactor shader recompiler to support new opcodes and improve memory operation handling, including atomic operations and image loading.
- Introduce new functions for decoding flat memory and vector operations, expanding shader capabilities.
- Update README.md with new instructions for shader recompiler usage and troubleshooting.
- Introduce `PushConstantVulkanRangeSize` function to calculate aligned Vulkan range sizes for push constants, ensuring proper memory alignment.
- Update shader recompiler to utilize the new function for push constant size handling in pipeline layouts.
- Add unit tests for push constant range alignment to validate the new functionality and ensure correct behavior across various scenarios.
- Refactor memory management functions in the kernel to improve clarity and maintainability.
- Update README.md to clarify automatic Vulkan layer disabling for third-party applications, including detailed boot log information.
- Refactor Vulkan layer disabling functions to support a broader range of known layers, improving compatibility with various overlays and capture tools.
- Introduce logging for fatal exceptions and security failures, enhancing diagnostics for crashes and errors.
- Add new debug configurations for the kyty_emulator in Visual Studio Code, facilitating easier debugging of specific games.
- Implement boot tracing for memory operations and GPU readiness checks, improving debugging capabilities in graphics processing.
- Refactor texture cache refresh logic to include additional parameters for better control during video output processing.
- Introduce functions to retrieve and synchronize flexible memory size, improving memory management consistency.
- Update `Run` function to set flexible memory size based on configuration or default values.
- Implement `SynthesizeProgramProcParam` to dynamically generate process parameters for programs, ensuring proper memory allocation and protection.
- Enhance memory quota management during allocation and deallocation in the `FlexibleMemory` class.
- Add new constants and structures for better handling of process parameters and memory configurations.
- Introduce ApplyMemoryRegionsFromProcParam to manage flexible memory regions based on process parameters.
- Update SynthesizeProgramProcParam to utilize the new function for improved memory management.
- Enhance logging for flexible memory allocation and program parameters, providing detailed insights into memory usage.
- Implement checks for application heap API availability and adjust memory allocation strategies accordingly.
- Introduce `RegisterSystemModuleMemory` function to register memory for system modules, improving memory management for kernel operations.
- Add `SumBytesOfType` method to calculate total memory usage by virtual range types, enhancing memory tracking capabilities.
- Update logging to include detailed information about memory types and sizes during virtual memory queries.
- Refactor memory range checks to support both program and system module types, ensuring accurate memory management across different contexts.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:09:31 +00:00
github-bot closed this pull request 2026-11-26 09:09:31 +00:00
Author
Owner

@⁠Pouare514 on GitHub · 2026-07-17 21:04 UTC · original

rwaaar i will wait a bit then cause i will always have the previous commits, i would need to retake the base code to do it clean so idk how to do it tbh (without having to stop pushing code for some days)

**@⁠Pouare514** on GitHub · 2026-07-17 21:04 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/32#issuecomment-5007464198) rwaaar i will wait a bit then cause i will always have the previous commits, i would need to retake the base code to do it clean so idk how to do it tbh (without having to stop pushing code for some days)
Author
Owner

@⁠Nmzik on GitHub · 2026-07-17 21:09 UTC · original

rwaaar i will wait a bit then cause i will always have the previous commits, i would need to retake the base code to do it clean so idk how to do it tbh (without having to stop pushing code for some days)

All good. No worries

**@⁠Nmzik** on GitHub · 2026-07-17 21:09 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/32#issuecomment-5007499895) > rwaaar i will wait a bit then cause i will always have the previous commits, i would need to retake the base code to do it clean so idk how to do it tbh (without having to stop pushing code for some days) All good. No worries

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.