18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 17:37:09 +01:00
Commit Graph

97 Commits

Author SHA1 Message Date
jerrrrycho 22c588d8f9 feat(cab): 401Da oil pump lamp and slotted speedometer lever (eu07/maszyna#546) (#261)
* feat: 401da oil pump lamp and slotted lever animation (eu07/maszyna#546)

i-oilpump lights while the pre-lubrication oil pump works, so it goes
off once the engine runs. animslottedlever: in the .mmd turns a lever
by a pin on the coupling rod sliding in the lever's slot, which the
speedometer drive of 401Da needs.

The compressor start delay of #546 came with CompressorStartDelay
(Brake section) of master.

* fix: force GLM AVX2 only when the compiler targets AVX2

ENABLE_AVX2=OFF left GLM_FORCE_AVX2 defined, so MSVC still emitted
AVX2 intrinsics and the exe crashed on CPUs without AVX2.

* test: cover the compressor start delay and the oil pump lamp

The delay of an engine stopped before it passed starts over, a
compressor switched on by hand waits too, and the key is read from the
Brake section. In the converter-fed set-up of 401Da the compressor
waits for ConverterStartDelay and then its own delay. The oil pump
(i-oilpump lamp) works before the engine start and stops once the
engine runs.
2026-11-08 14:48:42 +01:00
combolek a62c9d12f4 Disable GLM_FORCE_DEFAULT_ALIGNED_GENTYPES to fix graphics corruption
This is a regression introduced in 7525b54f (merged via df5a8a89), GLM_FORCE_DEFAULT_ALIGNED_GENTYPES causes visible screen corruption, particularly in the smoke from chimneys or vehicles.
2026-07-28 14:57:30 -07:00
Hirek 8399f55e53 Enable GLM_FORCE_INLINE only for MSVC compiler
Fixes compilation under gcc 15
2026-07-24 12:53:55 +02:00
Sebastian Krzyszkowiak 8383472bbe stdafx: Only use GLM_FORCE_DEFAULT_ALIGNED_GENTYPES on MSVC (#136)
It causes the game to crash on launch while attempting to use SIMD
instructions when compiled with GCC or Clang.

Since it's known to work on MSVC and was enabled due to performance
improvement, leave it enabled there.
2026-07-21 22:57:00 +02:00
Mateusz Włodarczyk dd412894bb Add macOS ARM64 build support
Three small source tweaks that let the OpenGL renderer build and run
on Apple Silicon without affecting the Windows/Linux paths:

- stdafx.h: use GLM_FORCE_NEON on ARM64 instead of GLM_FORCE_AVX2.
  AVX2 pulls <immintrin.h>, which clang on ARM64 rejects because
  the x86 intrinsics are unimplemented.
- utilities/utilities.cpp: provide an Apple libc++ fallback for
  Now() using localtime_r + strftime, since
  std::chrono::current_zone() is not yet implemented there.
- audio/audio.h: prefer Khronos-style <AL/al.h> headers when they
  are on the include path (brew openal-soft) and fall back to the
  deprecated Apple OpenAL.framework's <OpenAL/al.h> only otherwise.
2026-05-19 10:45:18 +02:00
Hirek 7525b54ff1 Enable GLM_FORCE_DEFAULT_ALIGNED_GENTYPES 2026-05-06 20:41:01 +02:00
Hirek 02cffbe4ad Enable AVX2 support 2026-05-06 20:02:00 +02: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
WLs50 a5f6397eca merge manul 2025-03-09 15:36:11 +01:00
milek7 3d15cf3672 add crashreporter 2021-02-13 18:32:19 +01:00
milek7 610ae75b17 reenable precompiled header, add USE_LTO option, enable LTO in CI builds 2021-01-24 23:15:18 +01:00
milek7 3cb5a98b60 remove openglcolor.h from stdafx.h 2021-01-24 22:36:28 +01:00
milek7 a182eec2a1 slightly better ui scaling 2020-12-02 01:49:58 +01:00
milek7 af0052995a Merge remote-tracking branch 'tmj/master' into sim 2020-10-19 03:00:24 +02:00
milek7 29f8f91ad8 Merge remote-tracking branch 'tmj/master' into sim 2020-10-18 23:35:14 +02:00
tmj-fstate 5d252745bd basic indexed geometry support, geometry data packing 2020-10-18 14:51:52 +02:00
milek7 936effa9db openvr WIP 2020-09-29 22:27:13 +02:00
tmj-fstate f306d04bba switch to dynamic library executable link policy 2019-12-15 16:50:57 +01:00
tmj-fstate babb43849e opengl error fixes 2019-11-14 15:49:12 +01:00
tmj-fstate ae3cecfa42 opengl 3.3 renderer integration, minor renderer tweaks 2019-10-31 19:38:11 +01:00
tmj-fstate 0fd23a53d9 milek7/sim branch opengl 3.3 renderer import 2019-10-26 15:17:09 +02:00
milek7 23d0093df0 Merge branch 'gfx-work' into sim 2019-09-07 02:53:57 +02:00
milek7 ee1c0ae8d4 Merge branch 'milek-dev' into gfx-work 2019-09-07 02:40:38 +02:00
milek7 6190060b1a Merge branch 'tmj-dev' into milek-dev 2019-09-07 02:25:43 +02:00
milek7 5c84f8b156 remove DBG_NEW new preprocessor kludges, ensure stdafx.h is included everywhere, add debug build to Azure CI 2019-08-30 23:35:58 +02:00
tmj-fstate 07d43956af maintenance: minor code tweaks 2019-08-20 12:40:55 +02:00
milek7 8f7e06c25c snapshot 2019-07-09 22:09:37 +02:00
milek7 d364c242aa Merge branch 'milek-dev' into gfx-work 2019-04-05 22:30:50 +02:00
milek7 0861ad9633 build system tweaks 2019-04-05 21:08:26 +02:00
milek7 3c28416912 Merge branch 'milek-dev' into gfx-work 2019-04-05 19:36:50 +02:00
milek 075d88e8d7 fix stdafx cotire 2019-03-25 20:56:22 +00:00
milek 810ea151e2 fix compiling on MacOS 2019-03-25 20:23:32 +00:00
milek7 1fba251baf change __linux__ to __unix__ 2019-03-25 20:20:22 +00:00
milek 33a4bb2b14 fix compiling on MacOS 2019-03-25 20:17:27 +00:00
milek7 901175f54a change __linux__ to __unix__ 2019-03-25 20:54:17 +01:00
milek7 7fb9769876 dummy glfwFocusWindow for old versions 2019-03-16 21:28:23 +01:00
milek7 ef82aa8589 splittable python windows 2019-03-13 01:03:38 +01:00
milek7 748e7b1dda imgui include fix 2019-03-06 17:42:52 +01:00
milek7 1bb700c1ec Merge branch 'milek-dev' into gfx-work 2019-02-26 22:07:04 +01:00
Milek7 8a5ca4e05a Set up CI with Azure Pipelines 2019-02-25 23:09:42 +01:00
milek7 ae7a0cf869 add <optional> to includes (to try to satisfy msvc) 2019-02-06 00:11:02 +01:00
milek7 2ffdb35d0f GLES fixes, update GLM, build fixes 2018-10-17 16:00:26 +02:00
milek7 d16d96f2b2 GLES support 2018-10-16 20:32:45 +02:00
milek7 09970d73b1 Merge branch 'milek-dev' into gfx-work 2018-10-10 19:33:08 +02:00
milek7 14b27a6e98 Merge branch 'tmj-dev' into milek-dev 2018-10-01 21:00:27 +02:00
tmj-fstate 7c60829f54 python interpreter refactored to a task queue 2018-09-28 19:16:41 +02:00
tmj-fstate 308bea337d virtual opengl color, overcast level based tweaks to light glare and freespot strength, precipitation based fog density adjustment, overcast level included in the light activation threshold 2018-09-24 22:01:14 +02:00
milek7 7c6501bb07 Merge branch 'master' into gfx-work 2018-09-20 19:14:28 +02:00
tmj-fstate 496a680e44 build 180918. imgui implementation upgraded to opengl3, opengl version requirement raised to 3.0 2018-09-18 05:04:15 +02:00
milek7 d9687a4e1f Merge branch 'tmj-dev' into milek-dev 2018-09-16 22:48:53 +02:00