Skip to content

[Chunk Uploads + Enum Refactors] Improve Chunk upload speed + Refactor MemoryTypes and VkQueues #393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from

Conversation

thr3343
Copy link
Contributor

@thr3343 thr3343 commented Apr 6, 2024

Cleans up significant boilerplate in several classes related to MemoryTypes + Queues, and replaces them with a much more readable and easier to use Enum-based system

This PR also corrects a mistake where cached system RAM was used instead of non-cached VRAM for Chunk uploads.
Which slightly improves the speed of chunk loading and saving.

thr3343 added 5 commits April 26, 2024 17:17
# Conflicts:
#	src/main/java/net/vulkanmod/vulkan/Drawer.java
#	src/main/java/net/vulkanmod/vulkan/framebuffer/SwapChain.java
#	src/main/java/net/vulkanmod/vulkan/memory/UniformBuffers.java
# Conflicts:
#	src/main/java/net/vulkanmod/render/VBO.java
#	src/main/java/net/vulkanmod/vulkan/memory/AutoIndexBuffer.java
@thr3343
Copy link
Contributor Author

thr3343 commented Jul 18, 2024

Decided to close this as its outdated + causes crashes on Non-Resizable BAR GPUs if more than 256MB needs to be uploaded in a single frame (e.g. high res texture Packs)

It also wasn't clear if this PR actually improved Chunk load speed, so will revisit + overhaul this code at a later time most likely

@thr3343 thr3343 closed this Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant