JKSunny / EternalJK

Effort to maintain and improve OpenJK
GNU General Public License v2.0
11 stars 1 forks source link

Vulkan: Map geometry phasing when on a map that has misc_bsp/skyportals #11

Open CansecoDev opened 7 months ago

CansecoDev commented 7 months ago

Operating system and version:

Windows 11 23H2

Description of the bug (and if possible, steps to reproduce the bug):

Can't quite put it into words, it is as if there was a second map phasing in and out, an easy way to reproduce is to join the JoF server while it has the mp/ffa3 map loaded and walk around, here is a video showing the issue:

https://www.youtube.com/watch?v=VcX2ZBmjhJQ

I suspect this issue is triggered by using bsp entities and maybe related to how skyportals works, but it is just a guess I have not looked more into it.

What did you expect to happen instead?

This same issue I can confirm doesn't happen with the Vanilla renderer.

JKSunny commented 7 months ago

@CansecoDev

Thanks for the bug report!

I've had this report once before, but seems to be resolved somehow. So I wrote it off to driver issue at the time.

I'm also not able to reproduce it, but seems modelmatrix or mvp somehow gets mixed up. Maybe indeed with skyportal or bsp

I'll put this on the todo list.

JKSunny commented 7 months ago

@CansecoDev

Could you provide me some details about your GPU?

in the console you can type /gfxinfo.

The gpu info is near the top, I'm espcially interested in model, driver and vulkan api versions. Should look similar to this: VK_VERSION: API 1.3.242, Driver: 536.23.0.0

CansecoDev commented 7 months ago

Here is the /gxfinfo with Vulkan loaded, but leaving here what we talked about, this issue happened on Windows 11 23H2, and I just recently removed the partition with Windows 11 so I can no longer test this on the same-same scenario:

VK_VENDOR: NVIDIA
VK_RENDERER: Discrete NVIDIA GeForce GTX 1660 Ti, 0x2191
VK_VERSION: API: 1.3.194, Driver: 512.89.0.0

VK_DEVICE_EXTENSIONS:
VK_KHR_16bit_storage VK_KHR_8bit_storage VK_KHR_acceleration_structure VK_KHR_bind_memory2 VK_KHR_buffer_device_address VK_KHR_copy_commands2 VK_KHR_create_renderpass2 VK_KHR_dedicated_allocation VK_KHR_deferred_host_operations
VK_KHR_depth_stencil_resolve VK_KHR_descriptor_update_template VK_KHR_device_group VK_KHR_draw_indirect_count VK_KHR_driver_properties VK_KHR_dynamic_rendering VK_KHR_external_fence VK_KHR_external_fence_win32
VK_KHR_external_memory VK_KHR_external_memory_win32 VK_KHR_external_semaphore VK_KHR_external_semaphore_win32 VK_KHR_format_feature_flags2 VK_KHR_fragment_shading_rate VK_KHR_get_memory_requirements2 VK_KHR_global_priority
VK_KHR_image_format_list VK_KHR_imageless_framebuffer VK_KHR_maintenance1 VK_KHR_maintenance2 VK_KHR_maintenance3 VK_KHR_maintenance4 VK_KHR_multiview VK_KHR_pipeline_executable_properties VK_KHR_pipeline_library
VK_KHR_present_id VK_KHR_present_wait VK_KHR_push_descriptor VK_KHR_ray_tracing_pipeline VK_KHR_relaxed_block_layout    VK_KHR_shader_atomic_int64

VK_INSTANCE_EXTENSIONS:
VK_KHR_device_group_creation VK_KHR_display VK_KHR_external_fence_capabilities VK_KHR_external_memory_capabilities VK_KHR_external_semaphore_capabilities VK_KHR_get_display_properties2 VK_KHR_get_physical_device_properties2
VK_KHR_get_surface_capabilities2 VK_KHR_surface VK_KHR_surface_protected_capabilities VK_KHR_win32_surface VK_EXT_debug_report VK_EXT_debug_utils VK_EXT_direct_mode_display VK_EXT_swapchain_colorspace
VK_NV_external_memory_capabilities

VK_MAX_TEXTURE_SIZE: 2048
VK_MAX_TEXTURE_UNITS: 8

PIXELFORMAT: color(24-bits) Z(24-bit) stencil(8-bits)
presentation: VK_FORMAT_B8G8R8A8_UNORM
depth: VK_FORMAT_D24_UNORM_S8_UINT
MODE: -2, 1920 x 1080 fullscreen hz: N/A
GAMMA: hardware w/ 0 overbright bits
texturemode: GL_LINEAR_MIPMAP_LINEAR
texture bits: 32
picmip: 0
anisotropic filtering: enabled  (16 of 16)

I'll try to reproduce it again just to see if it happens on Windows 10 too.

CansecoDev commented 7 months ago

Happening on Windows 10 22H2 too, but it looks slightly different:

image

image

I can very consistently reproduce this issue on JoF server mp/ffa3 as I previously mentioned. I don't have OBS set up currently to show, but it's as if (again hard to put into words) the bsp entity got attached to players, and you see the WHOLE map moving as a specific player moves, sometimes, at specific angles.

If there is anything I could do to help understand this bug on this hardware, let me know what to do.