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

4766 Commits

Author SHA1 Message Date
jerrrrycho 885c28c1ef fix: SonarQube findings of the buffer stops
- The notice of a finished hit is taken out of the contact with std::exchange before it goes to the scenery, so
  what the scenery does with it can't reach the one held in the contact.
- The loops count whole steps (an int, the number of steps taken with ceil) instead of adding a floating step.
- The local final of bufferstop::contact() is ending (final is a contextual keyword).

Unit tests 1294/1294.
build-feat-buffer-stops
2026-12-02 17:04:29 +01:00
jerrrrycho 9ecbd110da test: the buffer stops, against their sources and on td.scn
Unit tests of physics/bufferstop.h: the attribute, the brake elements of the
sliding stop (1848 kJ over 8 m), a locomotive shunting into a rigid stop, the
FEM case of Kowalczyk, Enfield, Kirkby, the speeds a stop is ridden up at, the
sliding stop held and overrun, the hydraulic stop, a central coupler, the
independence of the step, the adapter onto collision::hit() and the models of
the automatic rule.

Twelve scenario cases on autotest_stub of td.scn, with the new check
bufferstop of run.py on the log line of a hit.
2026-12-02 12:33:42 +01:00
jerrrrycho 7578f2c3a0 feat(physics): buffer stops at the free ends of the tracks
A free end of a rail track marked bufferstop1 / bufferstop2 <kind> in the
scenery is a buffer stop (physics/bufferstop.h): rigid, buffered, hydraulic
or friction. With physics.collisions new a vehicle running into it meets the
stages of the stop in series: the buffers of both, the absorber or the brake
elements of a sliding stop, then the frame, whose hit goes through
collision::hit() and whose ride-up goes through collision::override_of(),
the stop an immovable body. It is held, the frame deforms, it rides up
(Enfield 2021), demolishes the stop (Kirkby 2021) or overruns a sliding one.
The log tells each hit once, and the memory cells __simulation.bufferstop
and <track>:bufferstop and their events tell the scenery.

physics.bufferstops marked (the default) takes the marked ends only, auto
also the ends with a model of a stop within 3 m, off none. Every other free
end keeps the derailment off the end of the track, and so does every end
with physics.collisions old; monitor logs what the stop would have done.
2026-12-02 12:33:36 +01:00
jerrrrycho bc944b7977 test: the accident bands and Szczekociny for the collisions
Unit tests for the bands of the accident reports and the standards: no
crush at 5 km/h, coaches at 10 km/h and C buffers at 12 km/h buff
without one, a railbus with a crash zone at 36 km/h into an 80 t wagon
doesn't climb (EN 15227), two-car units at 24 km/h don't climb
(Plymouth 2016). The Szczekociny consist checks that the locomotives
crush for metres, the first vehicles of both trains derail and the
coaches behind stay on the rails and coupled. The crushed footprint of
a body off the track is shorter by the crush.

A scenario case re-creates the collision on td.scn and checks which
vehicles leave the rails.

en57_td_crew_parted hits at 140 km/h instead of 100: at 100 km/h the two
ends that meet now take the whole hit and the struck unit stays coupled,
while the case needs it parted for the crew event it tests.
build-feat-collision-calibration
2026-12-02 10:14:10 +01:00
jerrrrycho 1c170ecc31 fix(physics): a pair crushed already isn't one put down inside each other
In the game the distance to the neighbour lags the movement by the steps
of a frame. At 100 km/h and more a pair that crushed in one step looked
pressed past its stop by more than a step takes in the next one, was
taken for one put down inside each other by the scenery and stopped
crushing: on td.scn the EP09 of Szczekociny stopped at 0.37 m, and with
the energy left the coaches behind it climbed one another. Only a pair
whose ends never crushed can be one the scenery put down.
2026-12-02 10:14:10 +01:00
jerrrrycho 39f6566a5a feat(physics): calibrate the crush and the override against Szczekociny 2012
The head-on collision of Szczekociny re-created on td.scn derailed all 13
vehicles, tore all 11 couplings and crushed the locomotives by 0.37 m each.
In reality 7 of 13 derailed, the cabs and the machine room were destroyed
over several metres, and TLK coaches 3 to 7 and IR coaches 2 to 4 stayed
coupled on the rails.

- An end without a crash zone crushes for up to 4 m. The force packing down
  grows to at most twice the plateau (6 MN locomotive, 4 MN wagon or coach)
  and the crush goes on at it. Crash zones keep their 1.2 m. New optional
  key BuffCoupl FcrushMax (kN).
- The override no longer derails both alike vehicles at 0.6 m of crush of
  both ends. Past the buffer beams (0.35 m) the lighter one climbs (1.3
  times), or the higher one (40 mm, EN 15227). Without either, both leave
  the rails only once one end is crushed past its structure (its densify).
  A vehicle off the rails sits 0.15 m lower, unless it got off them
  climbing. An anticlimber works for its own end until its zone is spent.
- An end crushed back to its running gear (the outer axle) tears the body
  off its bogie and derails the vehicle.
- physics.derailment new: a vehicle that climbed is carried along the line
  while the pair still closes in faster than 0.5 m/s, so the ends crush on
  instead of meeting as rigid bodies off the track. A body off the track
  is shorter by the crush of its ends.

The couplings tore in every crushed interface because every interface
crushed (draw_gear_crush 0.15 m), not through a fault of their own. With
the cascade stopped the couplings behind the wreck hold.
2026-12-02 09:46:43 +01:00
Hirek 304ce934cc Merge pull request #375 from miloszunio/pr/brush
Editor: the brush of models as one model or many in a circle
2026-12-01 23:40:31 +00:00
Hirek 33feccb61b Merge pull request #406 from MaSzyna-EU07/fix/linux-case-extras
fix(files): the files #362 left are found and written in another case on Linux (GE#542)
2026-12-01 23:40:14 +00:00
Hirek fdc77484b8 Merge pull request #566 from MaSzyna-EU07/perf/msvc-release-lto
build: link-time optimization on by default for MSVC Release builds
2026-12-01 23:39:47 +00:00
Hirek a05781fc1e Merge pull request #562 from MaSzyna-EU07/ci/sonar-master-only
ci(sonar): one analysis per pull request at a time, with a time limit
2026-12-01 23:39:30 +00:00
Hirek b7772203fc Merge pull request #558 from MaSzyna-EU07/fix/sonar-staging-reliability
fix: the five bugs SonarQube Cloud reports on staging (reliability E)
2026-12-01 23:39:12 +00:00
Hirek 9bbbed18f6 Merge pull request #488 from MaSzyna-EU07/fix/inactive-cab-mirrors-flag
fix(vehicle): fold the mirrors of an inactive cab only when InactiveCabFlag says so
2026-12-01 23:38:42 +00:00
Hirek 082f248264 Merge pull request #484 from miloszunio/feat/flashlight-gl46
feat(driver): a flashlight for the player (Ctrl+Shift+F)
2026-12-01 23:37:41 +00:00
Hirek 1b3b92f6af Merge pull request #496 from MaSzyna-EU07/feat/switch-fork-running
feat(physics): a switch thrown under a train runs forked, and may derail it
2026-12-01 23:37:22 +00:00
Hirek c54b4e3589 Merge pull request #524 from MaSzyna-EU07/fix/compile-spirv-paths
fix(shaders): compile_spirv.py keeps its paths inside the shader tree and runs the compiler without a shell
2026-12-01 23:36:09 +00:00
Hirek 664a864f13 Merge pull request #563 from MaSzyna-EU07/perf/test-mode-hot-paths
perf: faster simulation step, mostly in the test mode (byte-identical results)
2026-12-01 23:35:27 +00:00
Hirek 9d73bb960d Merge pull request #568 from MaSzyna-EU07/test/scenario-runner-longest-first
test(scenarios): longest cases first, -j from the CPU count, utf-8 output
2026-12-01 23:35:02 +00:00
Hirek f71da105f6 Merge pull request #581 from MaSzyna-EU07/fix/derail-coupling-pull-angle
fix(derailment): the coupling off the track pulls hook to hook, not straight across (GH#579)
2026-12-01 23:34:09 +00:00
Hirek 22be853abc Merge pull request #582 from MaSzyna-EU07/feat/vulkan-memory-breakdown
feat(vulkan): the statistics show the device memory by its uses
2026-12-01 23:33:43 +00:00
maj00r ed58a3aab0 Merge pull request #535 from MaSzyna-EU07/feat/model-format-e4d
feat(model): the E4D model format: spec, reader, writer and conversion from E3D/T3D
2026-12-02 00:11:40 +01:00
miloszunio 585e51d140 docs(editor): the brush says rightly what happens when the step of a stroke is gone; the test's generator marked for Sonar (#375)
A correction of 1a6d2bb, whose message and comment were wrong: a stroke whose step is gone from the history didn't crash the
editor and doesn't go on in a step of its own. brush_dab() ends it before the models of the dab, as it did in a87a94d, so
brush_step(true) always has a step in the loop; the null check there is for the analysis (S2259). brush_step() returns null for a
step that is gone without touching the serial, as before 1a6d2bb, and the comments say so.

The helper of the unit test which takes the generator of the test carries the NOSONAR(cpp:S2245) the other ones have: a
repeatable test, not security. Without it the quality gate failed on the security rating.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDcMn1p6qPUo2Cgx4KaVYU
2026-12-01 22:34:14 +01:00
jerrrrycho 88139ce300 fix: the swapchain is destroyed without allocating, not by swallowing what the destructor throws
destroy() let go of everything at once through release_images(), which keeps the present semaphores for later in a vector and so may
allocate. It now destroys the views and the semaphores itself and is noexcept, and the destructor needs no empty catch (Sonar
cpp:S2486 on the PR).
build-fix-sonar-staging-reliability
2026-12-01 20:38:43 +01:00
miloszunio 1a6d2bbc2f fix(editor): the brush keeps its models when the step of the stroke is gone from the history (Sonar)
A stroke held long enough for its step to be trimmed from the history took the step as null and the next model crashed the
editor (Sonar S2259 in editormodebrush.cpp). The rest of the stroke now goes to a step of its own, which Ctrl+Z takes back.

The other notes of the analysis, with no change of behaviour: the fill loops test their counter only and stop on the limit
inside (S886), brush_on_line() is const, the step is found with std::to_address, the line shape of the brush is
shape::along_line (it shadowed the line settings, S1117), and the test of the picks without finite settings is a helper
(S134), with std::numbers::pi in the density test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDcMn1p6qPUo2Cgx4KaVYU
2026-12-01 20:29:37 +01:00
Hirek 2ceaa816a4 feat(vulkan): the statistics show the device memory by its uses
Each buffer and image in device local memory counts to the use it was
made for: its name without the number at the end, the textures and the
terrain maps in groups of their own (they are named after their files).
The statistics list the largest uses, the free space in the blocks of
the allocator and what the process holds outside of it (the swapchain,
the driver, DLSS), under the device memory line.

The unnamed staging buffers of the uploads are named "upload staging".
build-feat-vulkan-memory-breakdown
2026-12-01 19:59:36 +01:00
jerrrrycho 8ffb74a3b0 test, docs: the buckle case folds less with the coupling pulling hook to hook (GH#579)
eu07_td_off_track_buckle_fast checked that the overturned train comes to
rest folded by 8 deg at least. With the pull of the couplings no longer
across between the buffer faces, they hold the bodies more in line: with
the fixed seed the bends are 1 to 4 deg (3 to 8 before), with the seeds
1 to 6 the largest bend is 7 to 73 deg (21 to 78 before); the same with a
local build of staging and with the CI one. The check takes 3 deg, the
description gives the numbers.

behaviour-changes.md: the coupling off the track pulls hook to hook.
build-fix-derail-coupling-pull-angle
2026-12-01 19:51:07 +01:00
jerrrrycho 4f8b77c474 fix(derailment): the coupling off the track pulls hook to hook, not across between the buffer faces (GH#579)
With physics.derailment new, derail_motion::meet() took the pull of the
coupling along the line between the two buffer faces. Ends side by side,
almost touching along the track and 0.4 m apart across it, gave a line at
80-90 deg to the vehicles, and pull_neighbours() pulled the neighbours off
with Y/Q 1.4-4.3 from a coach that had barely left its line.

A screw coupling hangs between the draw hooks, which swing in the
headstocks behind the buffers. The pull now goes from the hook of one end
to that of the other: the end points moved back along each body's axis by
hook_depth (= buffer_length, 0.6 m; UIC buffers stand 620 mm out of the
headstock). 0.4 m across with the buffers touching gives ~18 deg. In line
nothing changes. Ends gone past each other (gap = distance between the
beams) keep the line between the beams, the way that gap closes: the hook
line turns about there and would hold the bodies with the hooks side by
side, pulling straight across.

gap, push, the buffer path and the point the force acts at are unchanged.
The shares of the force along each vehicle (measure_off_track) follow the
new line too.
2026-12-01 18:58:27 +01:00
jerrrrycho b63e9c5916 perf(audio): without an audio device the sound files aren't decoded (#571)
The test mode turns the sound off, so upload_sound() makes no AL buffer and
the decoded samples were thrown away; decoding them took a fifth of the load
of tomaszewo and over half of the load of l053_poranek. The file is still
found and its caption read, so what the simulation sees doesn't change.

Load to 'test: started' (LTO build, det.ini, seed 12345, 3 runs each):
- tomaszewo_raj40821: 34.8 / 35.4 / 36.2 s -> 26.2 / 19.1 / 19.1 s
- l053_poranek: 26.6 / 26.1 / 26.0 s -> 7.1 / 7.2 / 7.2 s
Physics logs of the full tomaszewo run: 14 of 14 identical, log lines after
the start identical; the 6 scenario cases: 6 of 6 .dat identical.
2026-12-01 18:51:54 +01:00
jerrrrycho f2aa5d5852 fix: count the names asked for in the case summary line, and scope the lock build-fix-linux-case-extras 2026-12-01 18:24:05 +01:00
jerrrrycho 77affa28d5 fix(files): the files found in another case are counted, and listed only with logs.filecase
These files load fine since #362, so a run no longer gets a log line for each of them. It gets one line with their
count when the game closes, none when there are none; "logs.filecase yes" in eu07.ini logs each name, once, as before.

- The count is written at the closing, as it covers the whole run: the vehicles, sounds and textures loaded after the
  scenery count too, which a line at the end of loading would miss.
- An eu07.ini key rather than a log type of its own: logs.filter sets all the types at once, so a type off by default
  would come on for anyone with "logs.filter 0".
- On Windows nothing is found in another case, so nothing is counted or logged.
2026-12-01 18:24:05 +01:00
jerrrrycho 67a7e3876c fix(files): a new layer isn't made over a file there in another case, and the review's smaller points
- node_layers::create() refuses a name a file is there with in any case: on Linux path() wrote over it.
- A name is marked as logged only once the file is known to be there.
- The log line says the file is on disk in another case; the folders FileOnDiskToWrite() looks up aren't logged.
- The editor start reads the layers, and the heightmap terrain its terrain.yaml and pack files, as they're named on the disk.
- The write test compares the names exactly; a test of the log line once per name, with the lines kept by the test log stub.
2026-12-01 18:24:04 +01:00
jerrrrycho 40cc6a2c93 refactor(utilities): the case report list without Sonar issues
The set of files already reported sits behind a function instead of a
mutable global, with a transparent hasher. No change in behaviour.
2026-12-01 18:23:28 +01:00
jerrrrycho d670cc2e53 fix(files): the files #362 left are found and written in another case on Linux (GE#542)
were still opened by the name the scenery gives, in lowercase, and some were written by it, so on Linux a new file went
to a new lowercase folder next to the real one, or a second file was made next to the one there.

Opened through FileOnDisk() now: the .vmd animations of the events, the Lua script of the scenery, the Lua and WASM
screens and the files they read from their folder, the textures read for the colour of the rails, and the .sbt files a
scenery includes with the terrain directive.

FileOnDiskToWrite() gives the file to write: the one there in any case under its name on the disk, otherwise the name
given in the folders as they are on the disk, the folders missing in any case named as given. The editor's layers
(node_layers::path()), the .sbt the game writes and the heightmap terrain folder go through it; the editor removes an
.sbt there in another case. The .e3d made of a .t3d is written next to the text, or over the .e3d there in another case.

FileCased() writes each file found only in another case to the log once (logtype::file), the list for the authors of
the data to name the files as they're asked for.

Nothing changes on Windows: FileCased() gives the name back as it is there, and nothing is logged.
2026-12-01 18:23:24 +01:00
jerrrrycho a1a988d753 test: the trains of the hose exchange kept from one step to the next against ones worked out in every step
One train, a locomotive with five freight wagons on a gradient, stepped twice from the same seed: as the game
steps it, the trains of the hoses kept in the cache, and with them worked out again in every step
(test::consist::keep_hose_trains(false)). Charged, braked, the last two wagons uncoupled, released: with
Global.physics_sleepheld the wagons held by their brakes fall asleep and wake on the way, so the trains change
with the uncoupling and with the vehicles going to sleep and waking. The pipes, the reservoirs of the hoses and
the brake cylinders of the two are bitwise the same after every step. A cache which is never laid out again
after its first step fails it (10203 differences).
build-perf-test-mode-hot-paths
2026-12-01 17:28:55 +01:00
jerrrrycho c45700d253 test(scenarios): the second coach derails forked first, its neighbours then pulled off
eu07_td_switch_thrown_facing_behind_derails failed on its on_track check:
once c2 derails running forked, the off-track motion of #451 takes its
ends, 0.4 m to the side of the coaches next to it, as a pull across them
(80-88 deg, Y/Q 1.4-4.3) and pulls c1 and c3 off, and c1 the locomotive.
The case now checks what the fork does: c2 derails first, with nothing
derailed or off the track before it in the log, it leaves the track
upright (flange climbed), and the train stops. log_lacks takes an
optional before pattern for that.
build-feat-switch-fork-running
2026-12-01 17:27:32 +01:00
jerrrrycho 2a63ddd1a9 fix(derailment): a vehicle derailed running forked slides along the track of its leading axle
With its bogies on the two ways of a switch, the line between its axles
is a chord across the two tracks, and the bed of the off-track motion lay
between them. track_front() and track_bed() now take the leading axle by
the sign of V while the bogies run forked (m_forkbogies, the axles not on
one way): its PathDirection() is the line, its position the point of the
bed. off_track_offset() is measured from that point too. Without a fork
nothing changes: the bed is between the axles as before.

same_way() moves to vehicle_dynamic (vehicle/dynamic/internal.h) for this.
2026-12-01 17:27:31 +01:00
jerrrrycho 5911ae728a fix(ai): the route scan of the switch fork after the includes again
The merge of staging put TableTrainPath(), TableTrackLength() and
TableSwitchThrownUnder() at the top of vehicle/ai/routescan.cpp, before
its licence header and includes, so the file didn't compile (both CI
builds of 3ebaf6871 failed on it). Moved below the includes, unchanged.
2026-12-01 17:27:31 +01:00
jerrrrycho 4187171859 ci(sonar): analyse every pull request again, one analysis per pull request at a time
The premise of the previous commit was wrong: pull requests into staging are analysed and get a
quality gate (#566 today). The run of #558 that gave no result was cancelled in the queue, which
is about an hour per analysis with many pull requests at once.

- build.yml runs for pull requests into any branch again, as on staging
- sonar.yml: a concurrency group per pull request with cancel-in-progress, so a newer commit's
  Build stops the analysis of the older one. workflow_run.pull_requests is empty for a pull
  request from a fork, so the fork and its branch name the group then. A push to master gets
  a group of its own commit and isn't cancelled
- sonar.yml: timeout-minutes 120 on Analyze, and an error status on the commit when the
  analysis is cancelled, so it doesn't stay "Analysis in progress"
- the scan of staging stays removed: build.yml pushes only on master, so it could never run
build-ci-sonar-master-only
2026-12-01 17:11:58 +01:00
jerrrrycho f3212f9bad docs(shaders): glslc from the Vulkan SDK or on PATH in the README
--glslc is gone, so the README names PATH instead. GLSLC_NAMES is back in the order of staging,
glslc.exe first.
build-fix-compile-spirv-paths
2026-12-01 17:02:07 +01:00
jerrrrycho ecf524063e refactor: std::array for the buffers of the physics log line and the seed of the lazy engine, ownP in the if
Sonar's remarks on the new code of this branch: the C arrays of append_fixed(), append_int() and
lazy_random_engine are std::arrays (S5945), the pressure of the ESt3 relays read once is declared in the
if that uses it (S6004), and the thread_local pointer to the lazy engine has the NOSONAR of the one above
it. The snprintf of the infinities and NaNs of the physics log stays, with a NOSONAR: std::format writes
them otherwise than printf's inf and nan(ind). No change of what the code does.
2026-12-01 16:59:35 +01:00
jerrrrycho 2883887f5c perf(physics): the trains of the hose exchange kept by the vehicle table, the inputs of a step read into kept storage
The cache of the trains was a function-local static of vehicle_table::update_brake_pipes(), shared by every
vehicle_table and kept from one scenery to the next; it's now a member next to m_brakepipes, the list it is
for. The inputs of each step were read into a new vector, twice per step (the brake and the main reservoir
pipe); they're now read into scratch storage of the cache, swapped with the kept inputs when they differ.
2026-12-01 16:58:29 +01:00
jerrrrycho b490d6a49d build: link-time optimization for the unit tests too, reword the USE_LTO comment
eu07_unit_tests links eu07_core, which USE_LTO compiles with /GL; without the property on the test
target MSVC met those objects in a link without /LTCG and restarted the link with it, after a warning.
INTERPROCEDURAL_OPTIMIZATION_RELEASE is now set on the test target too.
2026-12-01 16:58:17 +01:00
jerrrrycho 5b77fed81f perf: the settings static back with MSVC's thread-safe initialisation check
Takes back 3be7f5e82. /Zc:threadSafeInit- on utilities/Globals.cpp drops the guard from every function-local
static compiled in that file, those of the inline and template functions of stdafx.h and the project's headers
included, and the linker may keep that file's copy of such a function for the whole program. The 1.4% it gave
in one run is inside the run-to-run noise, so a static put in a header later and used from two threads isn't
worth the risk. Globals.cpp is built with the precompiled header again.
2026-12-01 16:57:52 +01:00
jerrrrycho 4a7eab6e13 test: the copy of the thread's engine marked as the simulation's randomness for Sonar (S2245) 2026-12-01 16:57:52 +01:00
jerrrrycho 5b1bbd7a09 test(scenarios): at most 2 slow cases at once with the default -j
With --slow and the default -j (half the logical CPUs) the five slow cases that don't have to run alone
started together, longest first, up to 5 x 2.4 GB at the start of the run. Without -j at most 2 of them
now run at once; the other places take the short cases meanwhile, in the same longest-first order. A -j
given on the command line lifts the limit. "started" is printed when a case really starts.

README: the slow wrzosy_pxe336080_couples still runs alone after all the others.
2026-12-01 16:56:57 +01:00
Hirek 1089a24995 Merge pull request #576 from MaSzyna-EU07/fix/vulkan-host-copy-fallback
fix(vulkan): textures filled by the host fall back to staging buffers where the driver can't make their images
2026-12-01 15:07:25 +00:00
Hirek 02f450c1ab fix(vulkan): a texture image that fails for another reason doesn't turn off host copy for its format
An image to be filled by the host which can't be made is tried again without the host transfer usage, and only when that one
can be made is the format filled through staging buffers from then on. When it can't either (the memory ran out), the texture
fails as before and the format keeps the host copy. The warning says the error logged before it was recovered from.
build-fix-vulkan-host-copy-fallback
2026-12-01 16:03:43 +01:00
Hirek 1ae8fdc62a Merge pull request #560 from MaSzyna-EU07/fix/derailment-ground-556
fix(derailment): no fall through the ground off the track, and more friction on it (#556)
2026-12-01 10:07:17 +00:00
Hirek c90113f4d3 fix(vulkan): textures filled by the host fall back to staging buffers where the driver can't make their images
On a GeForce GTX 1050 (driver 582.28) every DDS texture loaded in the background came out white: the driver reports
hostImageCopy for the format, but an image with VK_IMAGE_USAGE_HOST_TRANSFER_BIT can't be made (vmaCreateImage fails with
VK_ERROR_FEATURE_NOT_PRESENT), and the texture was left without a gpu image.

- The check of a format (once a format) also asks the allocator for the memory a trial image of the textures' kind would go to,
  and uses hostImageCopy only when there is such memory and it is device local.
- Each texture is checked against the limits of the format for that use (maxExtent, maxMipLevels), which were left unread.
- An image the driver still can't make is made again without the host transfer usage and filled through a staging buffer, and
  the rest of its format goes that way too.
- The log says once a format which way its textures go.

Devices where hostImageCopy works keep it: the check is made once a format.
2026-11-30 23:37:40 +01:00
miloszunio a87a94d36d fix(editor): the brush after the review of 30.11: a second uniform stroke doubles nothing, the step of a stroke by its serial
- the uniform fill is told of the models which stand near the dab already (scatter::dab(), Standing) and leaves the points of
  its grid alone where one stands: a second stroke over the same ground adds nothing, as the description says. After a Ctrl+Z
  of the first the ground is filled again
- the step of the history of a stroke is made with its first model and looked up by its serial for each model
  (editor_mode::brush_step()): a step pushed while the button is held (Del) no longer takes the later models of the stroke,
  and a press which puts nothing (on the sky, no model chosen) leaves the steps to redo as they were
- the settings of the brush are bounded before they are used (scatter: sane()): a number typed into a field which isn't
  finite gives no place nor transform which isn't, and the fields clamp what is typed (ImGuiSliderFlags_AlwaysClamp).
  Within the ranges of the panel nothing changes
- tests: the second stroke, the settings which aren't numbers, the ranges of the panel
- redo_last() ends the stroke after the step of the terrain, and tests/unit/CMakeLists.txt lists editorScatter.cpp apart from
  the lines #311, #430 and #431 add, so the four merge without a conflict
2026-11-30 22:16:26 +00:00
miloszunio 1e3c9b9c40 fix(driver): the flashlight after the review of 30.11: the toggle in a helper, a line in the log with the clustered lights off
- TCamera::OnCommand() hands the command to toggle_flashlight(), which keeps the complexity of the handler where it was (S3776)
- turned on with gfx.lights.clustered off the flashlight lights nothing: the log says so
- local_lights::add_flashlight() is private; gather() adds the flashlight right after the lights of the cab, apart from the
  place the arcs of the pantographs of #431 are added in, so the two merge without a conflict
- a test of the toggle: the key going up switches it, a press and the repeats don't
2026-11-30 22:01:30 +00:00