18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-28 22:03:20 +01:00
Commit Graph

32 Commits

Author SHA1 Message Date
jerrrrycho
3eb2fdf462 Merge staging into feat/gl46-migration
origin/staging 7ac2472c3 into feat/gl46-migration db26a33ed, so that #468
merges into staging. Merge base 037158104. Staging carries master up to
571487612 (squashed in #514); this branch had merged master up to 7c12b83ba.

Conflicts, file by file:
- README.md: WITH_BETTER_RENDERER row dropped (gl46), USE_SYSTEM_JSON row kept (staging)
- CMakeLists.txt: gl46 lists, plus staging's new core sources (hardwareinfo, sn_utils, regionfile, inionlysettings, fieldshunting, gaugewrap, drivingaid, signalpassing, brakereleaser, crew, brakecharge); none listed twice
- tests/unit/CMakeLists.txt: both (texturealpha, freecameramotion; editorSwitchDrives, Camera)
- vehicle/brakingcurve.{h,cpp}, tests/unit/test_braking_curve.cpp (add/add): staging (#479 brake_acting on the same #409 code)
- editor/editorHttp.cpp: staging (it has gl46's #432 and certificate fixes, plus #439 libcurl loaded at run time)
- tests/unit/test_editor_http.cpp (add/add): staging (adds the available() case of #439)
- utilities/Globals.h: gl46 crashdump_full (staging's CrashDumpFull is #425, replaced here by utilities/crashdump.cpp); fmradio and staging's OpenAL options both; gfx_headlights_beamwidth (#481) not taken
- utilities/Globals.cpp: both (odometer.expiry, OpenAL keys, fmradio, gl46 gfx keys); gfx.headlights.beamwidth (#481) not taken
- utilities/Logs.cpp: staging's log_file_name() for both files, with gl46's crashdump_set_log_file() for both
- utilities/utilities.h: gl46 set_thread_random_engine(); Random(int, int) gone on both sides
- tests/unit/test_utilities.cpp: staging's includes
- simulation/simulationtest.cpp: gl46 (no NvRenderer, LegacyRenderer, BasicRenderer here)
- ci_shadervalidator/* (incl. add/add utilities/Logs.h): gl46's validator of shaders/ogl46 and shaders/vk14; staging's #437 fixed the GL 3.3 one
- gl/shader.cpp, gl/glsl_common.cpp: gl46 (shaders come from rendering/common/shadersource.cpp); HEADLIGHT_BEAM_WIDTH (#481) not taken
- shaders/mat_wire.frag: gl46. Rename detection paired staging's mat_colored.frag (#481) with it
- lang/editor_pl.po: union; the 12 camera speed / orthophoto entries staging adds are here already (master #312)
- audio/audiorenderer.{h,cpp}: both (fmradio; startsample and the low-pass filter); the destructor releases the radio, then the filter
- application/editormode.h, application/editormodeswitchdrive.cpp: staging (#509 on #330, which is all this side had)
- application/application.cpp: gl46's start sequence (no init_ogl, ANGLE or NvRenderer; crash window after init_ui) with staging's hardware::log_system() (#389)
- EU07.cpp: gl46 (crash reports of utilities/crashdump.cpp); staging's side was #425's handler, replaced here
- model/Texture.{h,cpp}: gl46 (texture_source); staging's side is master #399/#411/#362/#386, merged here before
- world/Track.h, world/TrackSleepers.h: both (TrackBlend, lay(Fastened)/fasten; TrackBuckle, pack_models)
- world/Segment.cpp: staging's track buckling on the split stray factors both sides have
- vehicle/Driver.h: staging's additions (#444, #494, #473, #346, timetable flags)
- vehicle/Driver.cpp: staging's file, with this branch's f4f8c75e4 (road orders measured along the lane) and 8fbf05674 (a holding road order blocks the ones past it) applied again; #409's SeenAheadTolerance gives way to #473
- vehicle/DynObj.h: friend opengl46_renderer and friend class vehicle_table
- vehicle/DynObj.cpp: gl46's vehicle_table::update() with staging's update_off_track_contacts() and update_brake_pipes()
- McZapkie/Mover.cpp: staging's function splits (#239) and hose exchange (#388); every line this branch added to Mover.cpp/MOVER.h is kept
- .github/workflows/build_bin.yml: staging's apt-install step (#497) and pinned download-artifact (#331)

Modify/delete, kept deleted:
- rendering/opengl33renderer.{cpp,h}, rendering/openglparticles.cpp, rendering/openglrenderer.{cpp,h}: staging's versions are master's, and every master change to them is in this branch's history already
- shaders/light_common.glsl, shaders/mat_sunlessnormalmap_specgloss.frag: see below

Carried into this branch's code:
- the hose exchange after each sub-step (#387/#388) also in update_steps_parallel(), per group of vehicles, as update() does it single-threaded
- physics.pipewake (pipe_wakes(), wake_cause::scndpipe) in staging's GetScndDVc(), where the main reservoir hose exchange went
- hardware::log_gl_context() (#389) in after_window() of the GL 4.6 backend, init_ogl() being gone

Taken back out of the auto-merge (renderers this branch removed):
- shaders/vk14/tonemapping.glsl: #481's switch to ACES, applied there by rename detection
- environment/skydome.cpp, simulation/simulationenvironment.cpp: #415, the sky of the legacy renderer
- application/application.cpp: #384's fallback of an unknown gfxrenderer, which this branch had dropped

Not carried from staging (renderer files removed here):
- master #481 (571487612): old assets drawn as in 26.05 (metal diffuse, sun highlight tint, ACES, SUN_DIFFUSE_SCALE 2.5, untinted Diffuse, mat_colored base) and gfx.headlights.beamwidth. Made for the GL 3.3 shaders; the PBR shaders of shaders/ogl46 and vk14 (and their SPIR-V binaries) are the author's call
- #437: the unique temporary file of the shader validator (Sonar S5443); gl46's validator still writes /tmp/shader*

Unit tests: 1133 of 1137 cases pass. Four staging tests fail (derailment: a
repaired vehicle is back on the rails; three pullee cases): the vehicle
stands, and with physics.sleepheld (on by default here) its physics sleeps
with the Fb / FStand of before. With physics.sleepheld off they pass. Left
to the author.
2026-11-27 05:26:13 +01:00
jerrrrycho
dadc3905ba feat(log): the cpu, the memory and the GPUs at startup, with a warning for an integrated GPU (#389)
* feat: log the cpu, the memory and the GPUs at startup

Bug reports can't tell from log.txt whether the game ran on the
integrated GPU of a laptop instead of the dedicated one: it names only
GL_RENDERER, GL_VENDOR and the GL version. The exe asks for the
dedicated GPU (NvOptimusEnablement, AmdPowerXpressRequestHighPerformance),
but the Windows graphics settings, the driver panel or the socket the
monitor is plugged into can override that.

At startup the log now gets, every line starting with "hardware: ":
- the cpu (cpuid brand string, the registry on Windows as a fallback,
  /proc/cpuinfo on Linux), its cores and threads, and AVX2 support
  (with a warning when the build needs AVX2 and the cpu has none)
- the total and the available memory
- on Windows every adapter DXGI lists (description, vendor and device
  id, dedicated and shared memory, monitors connected, integrated or
  discrete), the software adapter left out; dxgi.dll is loaded with
  LoadLibrary, so the game gets no new link dependency
- right after the OpenGL context is made, the GPU it runs on and its
  memory where the driver tells it (GL_NVX_gpu_memory_info,
  GL_ATI_meminfo)
- a warning when OpenGL runs on an integrated GPU while the system has
  a discrete one, or draws on the cpu (GDI Generic, llvmpipe)

Integrated or discrete is told from the vendor and the name, and only
when sure (utilities/hardwareinfo.h): NVIDIA is discrete; Intel is
integrated except the Arc cards and Iris Xe MAX; AMD is discrete for
RX/Pro/VII/FirePro, integrated for the APU names ending in "Graphics",
unknown otherwise. An unknown GPU never raises the warning.

The rules and the text are in utilities/hardwareinfo.cpp (core
library, unit tested); the probing in utilities/hardwareprobe.cpp,
called from application.cpp. No renderer file is touched.

README.md: the minimum cpu now matches the package readme, 4 cores with
AVX2 (Core i5-4430 / Ryzen 3 1200), instead of 2 cores (Core i3-2100,
which has no AVX2 the release needs).

* refactor(log): the hardware info without Sonar issues

using enum for gpu_kind, the ranges algorithms, a reader struct for
/proc/cpuinfo instead of a long lambda, explicit captures, cpuid
returning a std::array, the adapter list behind a function rather than
a mutable global, and uppercase literal suffixes in the test. No change
in behaviour.

* fix(log): load dxgi.dll from System32 only, cap the GL error drain

LoadLibraryW searched the game folder first, so a proxy dxgi.dll left
there by ReShade or ENB was loaded at every start just to list the
adapters. The loop that clears the GL errors after the memory queries
could spin forever on a lost context that keeps reporting one; it now
stops after 32. A comment says when the AVX2 warning can be reached.

* fix(log): Raven Ridge RX Vega and Panther Lake Arc B3xx are integrated

"Radeon RX Vega 11 Graphics" (Ryzen 2400G) and "RX Vega 10 Graphics"
(2700U) hit the "rx" card rule before the "ends with Graphics" APU one,
and "Arc B390 GPU" / "B370" of Panther Lake looked like an Arc card by
the letter and number. Both came out discrete, so the integrated-GPU
warning never showed on such a machine. An RX Vega with a number and
"Graphics" is now an APU (RX Vega 56 and Vega M of Kaby Lake G stay
discrete), and Arc B3xx is integrated (A310, A380, B570, B580 stay
cards).
2026-11-25 06:15:33 +01:00
jerrrrycho
8bff785886 build: optionally use the system nlohmann_json (USE_SYSTEM_JSON) (#360)
USE_SYSTEM_JSON (default OFF) takes an installed nlohmann_json 3.9 or newer (ordered_json, used by the unit tests) with find_package instead of the ref/json submodule. Both give the nlohmann_json::nlohmann_json target linked to eu07_settings. Drop the include directory from the never defined NLOHMANN_JSON_INCLUDE_INSTALL_DIR. Fixes #54.
2026-11-20 16:34:04 +01:00
8701c5de02 Merge branch 'master' into feat/renderers-cleanup 2026-11-10 17:09:09 +01:00
pwarszawski
eb75089ba2 Python screens: ship Pillow with the Windows build, and the screen module for Pillow 10+
- The Windows build job installs Pillow into the Python 3.14 whose Lib, with
  site-packages, CMake copies next to the executable as python64\Lib, as the
  Linux job already does; the README says the same for a local build.
- Both build jobs copy staticFiles/python/local (the Python 3 version of the
  module every cab screen subclasses) into python/local of the build.
- The module puts back what Pillow 10 removed and the screen scripts use:
  ImageFont.getsize() and ImageDraw.textsize() on top of getbbox() /
  textbbox(), and Image.ANTIALIAS as LANCZOS. With an older Pillow nothing
  changes.

Part of #300.
2026-11-08 21:12:35 +01:00
12c2aaf1db chore: remove the NVRHI-based betterRenderer 2026-10-21 19:30:32 +02:00
f47172f34d Migration cleanup and renderer documentation 2026-10-15 19:05:35 +02:00
66302bd88e Remove appveyor and update readme 2026-08-19 14:50:28 +02:00
Ryba04
1357afb9e1 Update C++ version in readme 2026-08-16 12:40:47 +02:00
Ryba04
7ed57d1b3b Fix assets license link in README
Updated the link for the assets license in the README.
2026-08-09 19:27:27 +02:00
Ryba04
8cd94859c3 Update assets license link in README.md 2026-08-09 19:26:24 +02:00
7c88907f6b Update README.md with new badges 2026-06-30 20:41:08 +02:00
maj00r
4258af45dd cmake_path removed 2026-05-11 18:21:12 +02:00
maj00r
3786ecd98f Python 3.14 build and CI updates
Squashes the last five commits: migrate to Python 3.14 (CMake, AppVeyor, Azure, README), vcpkg/setup-ci fixes, CMake adjustments, remove bundled ref/python 2.7, and related scripting/static file updates.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 18:21:12 +02:00
203b2727af Update custom license link in README.md 2026-04-01 20:17:33 +02:00
79f3991e13 Update README with new header and links 2026-04-01 20:15:47 +02:00
Stapox35
1c1a94ade7 Update build instructions with new links
Repository links updated to reflect move to a new organization
Developer chat link updated to official Discord server
Removed Mattermost links
2026-01-28 23:09:45 +01:00
077b2173ac Update minimum requirements - issue: #34 2025-12-27 15:50:44 +01:00
58e54f30bb README.md update 2025-09-05 23:53:53 +02:00
WLs50
0280b40ca5 Merge remote-tracking branch 'manul-public/master' into manul-staging 2025-04-05 14:24:53 +02:00
060f55ac2e Note for compiling (there are submodules now) 2025-03-16 16:24:35 +01:00
Kamil Lewan
f48b976ed0 Update "Dynamic libraries" secion
- small fix in formating: end `/`
- add serialport link
- add `asio` lib
2021-01-16 22:25:11 +01:00
milek7
8a93a9e2fb update readme 2019-07-13 00:37:39 +02:00
milek7
156e31463c Merge branch 'master' of https://github.com/eu07/maszyna 2019-06-09 13:55:24 +02:00
milek7
87acb6bc15 remove glut 2019-02-19 01:27:57 +01:00
Kamil Lewan
406ffe0bac Fixup
Fix link in readme...
2019-01-26 20:06:02 +01:00
Kamil Lewan
8b0eb5e649 Update Readme
Add current assets link.
2019-01-26 19:55:48 +01:00
Milek7
ff6c8cd015 Update README.md 2018-10-11 20:17:06 +02:00
Kamil Lewan
013be7b513 Update README.md 2018-10-09 17:01:14 +02:00
milek7
a810cbd640 configure appveyor 2017-11-02 21:43:25 +01:00
VB
6562a97866 build tweaks 2017-03-22 16:32:33 +01:00
Zbigniew Mandziejewicz
20720a4a33 Create README.md 2015-04-03 21:57:45 +08:00