18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 14:07:06 +01:00
Commit Graph

31 Commits

Author SHA1 Message Date
lcddisplay 467e850a4e Textures with the trait r are kept as they are; the scene block carries the place of the camera of the pass
A texture named with :r (the frames of the animations baked into textures, mat_vat) is never scaled down to maxtexturesize
nor compressed by the driver with compresstex: its texels are data, not a picture.

gl::scene_ubs::camera_hi, camera_lo: the place of the camera of the pass in the world, which the models are drawn relative
to, split so both parts are exact in floats. Set with inv_view in every pass that has it (the color pass, the faces of the
environment map, the sun cascades, the headlight shadows, the previews). mat_vat.vert takes the place of a model in the world
from them, so models standing turned the same way still get a moment of the animation of their own, the same in every pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXgG7F4L42c2F9sDSAJbT2
2026-11-02 16:37:48 +01:00
Hirek 75cb88f275 Map BC7 (BPTC) dds textures to native VK_FORMAT_BC7 in the Vulkan renderer 2026-10-31 16:46:35 +01:00
Hirek a99882278a Fix the build after merging master: drop the GLES check from bptc_supported() 2026-10-29 20:46:11 +01:00
Hirek 55372571b3 Merge branch 'master' into feat/renderers-cleanup 2026-10-29 20:42:39 +01:00
Hirek 1447dcf075 Walk the shadow passes and the culled model groups on worker threads in the Vulkan renderer 2026-10-27 20:56:11 +01:00
Hirek bd589f272d feat(vulkan): vulkan 1.4 core with the user interface and the launcher, shaders split into ogl46/vk14 with SPIR-V binaries loaded first 2026-10-24 05:47:11 +02:00
Hirek 3e2d292709 perf(gpucull): keep the walks of the submodel trees of the instances from frame to frame and make them again only when the model changes (gfx.gpucull.walkcache) 2026-10-24 01:01:43 +02:00
Hirek 794ac578de perf(textures): with texture streaming read the data ahead of the camera instead of the whole scenery at load, drop read-ahead data unused for 5 min 2026-10-23 23:35:02 +02:00
Hirek 2dc70a50bc perf(debug): memory of the process and of its parts in the debug panel: resident, peak and private memory, card memory (GL_NVX_gpu_memory_info), the copies kept by the textures, geometry banks, models, scenery shapes and lines, sleepers and sound buffers 2026-10-23 22:02:03 +02:00
Hirek de9f61b307 Merge remote-tracking branch 'origin/feat/switch-blades' into feat/gl46-migration 2026-10-19 22:13:43 +02:00
maj00r a311bd013f fix(editor): orthophoto tiles no longer turn white after a while out of sight
The tiles are given to the gpu straight from memory; the garbage sweep
released them like the ones read from files and they came back as the
grey stub until made again. They're kept now, and a new texture name
clears the cache of the bound units.
2026-10-19 19:25:25 +02:00
Hirek f47172f34d Migration cleanup and renderer documentation 2026-10-15 19:05:35 +02:00
Hirek c77151979a Bind an empty shadow map instead of unbinding the shadow map unit 2026-10-15 17:11:31 +02:00
Hirek 9e64244ebd Require OpenGL 4.6 core context and regenerate glad 2026-10-15 01:39:32 +02:00
Hirek 0e10ce4d0b Remove OpenGL ES / ANGLE render path 2026-10-15 00:53:28 +02:00
Hirek 3d3eef2e1c Remove legacy OpenGL 2.1 renderer 2026-10-15 00:06:31 +02:00
Hirek be3af9a34d Add dds BC7 algorithm 2026-10-14 20:15:45 +02:00
Hirek 9935257783 Add nosonar tags 2026-10-09 18:40:31 +02:00
Hirek 917c8f7285 Merge branch 'master' into feat/modern-editor 2026-10-08 17:44:58 +02:00
Hirek 28b4e57133 feat(loading): optional background loading: sound files decoded by worker threads (sound.asyncload), data of dds textures read by worker threads (gfx.textures.streaming), gl textures of vehicles farther than a multiple of the draw range released (gfx.textures.releasedistance); all off by default 2026-10-08 16:17:46 +02:00
jerrrrycho 79bd0c8e91 fix(sonar): addressing reliability/security issues (#202) 2026-10-04 20:00:13 +02:00
jerrrrycho 176427f96b refactor: sonar c++20 changes (#185) 2026-09-28 21:08:15 +02:00
Mateusz Włodarczyk a961393df9 macOS: guard mipmap generation call on legacy GL path (#132)
glGenerateMipmap is null on the legacy GL path in some contexts; use the
GL_GENERATE_MIPMAP fallback instead of crashing.
2026-07-13 10:15:39 +02:00
jerrrrycho d85096f64d reformat: remove redundant parentheses 2026-06-30 21:19:46 +02:00
docentYT ca699d117f Remove not needed includes 2026-05-02 14:40:31 +02:00
docentYT 28baad8c5b Refactor clamp_power_of_two 2026-05-02 00:35:50 +02:00
docentYT 0e6950a386 Replace count_trailing_zeros with std::countr_zero 2026-05-01 17:43:43 +02:00
docentYT ec1dfae953 Replace starts_with and ends_with with string class methods 2026-05-01 17:31:11 +02:00
jerrrrycho 9f43dca48b refactor: create paths namespace instead of global variables 2026-03-15 11:55:30 +01:00
copilot-swe-agent[bot] 7e49aa8740 Rewrite #includes to use explicit subdirectory paths
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com>
2026-03-14 19:16:48 +00:00
copilot-swe-agent[bot] 0531086bb9 Reorganize source files into logical subdirectories
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com>
2026-03-14 19:01:57 +00:00