diff --git a/README.md b/README.md index 208526b0b..c8645ea1f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ![Discord](https://img.shields.io/discord/1019306167803056158?style=flat-square&logo=discord&label=Discord&labelColor=white) ![Github Actions](https://img.shields.io/github/actions/workflow/status/MaSzyna-EU07/maszyna/build_bin.yml?style=flat-square ) ![Quality gate](https://img.shields.io/sonar/quality_gate/MaSzyna-EU07_maszyna?server=https%3A%2F%2Fsonarcloud.io&style=flat-square ) ![Sonar cloud violations](https://img.shields.io/sonar/violations/MaSzyna-EU07_maszyna?server=https%3A%2F%2Fsonarcloud.io&format=long&style=flat-square -) [![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg?style=flat-square)](LICENSE) [![Last commit](https://img.shields.io/github/last-commit/MaSzyna-EU07/maszyna?style=flat-square&label=Last%20commit)](https://github.com/MaSzyna-EU07/maszyna/commits/master) [![Open issues](https://img.shields.io/github/issues/MaSzyna-EU07/maszyna?style=flat-square&label=Issues)](https://github.com/MaSzyna-EU07/maszyna/issues) [![Pull requests](https://img.shields.io/github/issues-pr/MaSzyna-EU07/maszyna?style=flat-square&label=Pull%20requests)](https://github.com/MaSzyna-EU07/maszyna/pulls) [![GitHub stars](https://img.shields.io/github/stars/MaSzyna-EU07/maszyna?style=flat-square&logo=github&label=Stars)](https://github.com/MaSzyna-EU07/maszyna/stargazers) [![GitHub forks](https://img.shields.io/github/forks/MaSzyna-EU07/maszyna?style=flat-square&logo=github&label=Forks)](https://github.com/MaSzyna-EU07/maszyna/forks) ![C++](https://img.shields.io/badge/C%2B%2B-17-00599C?style=flat-square&logo=cplusplus) ![Windows](https://img.shields.io/badge/platform-Windows-0078D6?style=flat-square&logo=windows) ![Linux](https://img.shields.io/badge/platform-Linux-FCC624?style=flat-square&logo=linux&logoColor=black) ![OpenGL](https://img.shields.io/badge/OpenGL-4.6-5586A4?style=flat-square&logo=opengl) +) [![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg?style=flat-square)](LICENSE) [![Last commit](https://img.shields.io/github/last-commit/MaSzyna-EU07/maszyna?style=flat-square&label=Last%20commit)](https://github.com/MaSzyna-EU07/maszyna/commits/master) [![Open issues](https://img.shields.io/github/issues/MaSzyna-EU07/maszyna?style=flat-square&label=Issues)](https://github.com/MaSzyna-EU07/maszyna/issues) [![Pull requests](https://img.shields.io/github/issues-pr/MaSzyna-EU07/maszyna?style=flat-square&label=Pull%20requests)](https://github.com/MaSzyna-EU07/maszyna/pulls) [![GitHub stars](https://img.shields.io/github/stars/MaSzyna-EU07/maszyna?style=flat-square&logo=github&label=Stars)](https://github.com/MaSzyna-EU07/maszyna/stargazers) [![GitHub forks](https://img.shields.io/github/forks/MaSzyna-EU07/maszyna?style=flat-square&logo=github&label=Forks)](https://github.com/MaSzyna-EU07/maszyna/forks) ![C++](https://img.shields.io/badge/C%2B%2B-20-00599C?style=flat-square&logo=cplusplus) ![Windows](https://img.shields.io/badge/platform-Windows-0078D6?style=flat-square&logo=windows) ![Linux](https://img.shields.io/badge/platform-Linux-FCC624?style=flat-square&logo=linux&logoColor=black) ![OpenGL](https://img.shields.io/badge/OpenGL-4.6-5586A4?style=flat-square&logo=opengl) MaSzyna executable source code is licensed under the [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/) and comes with a large pack of free assets under a [custom license](https://eu07.pl/docs/inne/readme_pliki/en-licence.html). @@ -31,6 +31,8 @@ MaSzyna executable source code is licensed under the [MPL 2.0](https://www.mozil - [Support](#support) +- [System requirements](#system-requirements) + - [License](#license) @@ -44,11 +46,11 @@ MaSzyna compiles and runs natively on **Linux** and **Windows**. Other platforms ### Prerequisites -> For runtime requirements see [Minimum Requirements](#minimum-requirements). +> For runtime requirements see [System requirements](#system-requirements). **1) Software** _(oldest tested in parentheses)_ -- [CMake](https://cmake.org/) _(3.0)_ +- [CMake](https://cmake.org/) _(3.26)_ - [make](https://www.gnu.org/software/make/) @@ -90,6 +92,8 @@ MaSzyna compiles and runs natively on **Linux** and **Windows**. Other platforms **3) Graphics API** - **OpenGL 4.6** (core profile), required by the default renderer; see [docs/opengl46-renderer.md](docs/opengl46-renderer.md) + +- **Vulkan 1.4**, optional, for the Vulkan renderer (`-DWITH_VULKAN=ON`, the default; the headers come from the `ref/Vulkan-Headers` submodule, the loader is loaded when the program runs) ### CMake flags @@ -224,15 +228,33 @@ If detection still fails, padding the file (with comments) up to ~1 MB may hel - **Project page:** [https://eu07.pl/](https://eu07.pl/) -## Minimum requirements +## System requirements -- OS: **Windows 10 64-bit** -- Processor: **4 cores with AVX2 support (e.g. Intel Core i5-4430 / AMD Ryzen 3 1200)** -- RAM: **6 GB RAM** -- Graphics Card: **supporting OpenGL 4.6 with at least 1GB VRAM** -- **150 GB of free disk space** -- Sound card supporting OpenAL with stereo -- Optional COM ports for custom control panel setups. +MaSzyna needs a **64-bit x86 processor** (x86-64) and a **64-bit system**: **Windows** or **Linux**. macOS is not supported: it provides OpenGL only up to 4.1. + +| | Minimum | Recommended | +|---|---------|-------------| +| **OS** | Windows 10 64-bit; Linux x86-64 (the CI builds need glibc 2.39 and the C++ library of GCC 13 or newer, as in Ubuntu 24.04) | Windows 10/11 64-bit; Linux as in the minimum | +| **Processor** | 4 cores with **AVX2** (e.g. Intel Core i5-4430 / AMD Ryzen 3 1200) | 4 cores with AVX2 at 3 GHz or more (e.g. Intel Core i5-6600 / AMD Ryzen 5 1600); more cores help | +| **RAM** | 6 GB | 16 GB | +| **Graphics card** | **OpenGL 4.6** (core profile), at least 1 GB VRAM | OpenGL 4.6, at least 6 GB VRAM; **Vulkan 1.4** for the optional Vulkan renderer | +| **Disk** | 150 GB of free space | 250 GB of free space on an SSD | +| **Sound** | Stereo sound card supported by OpenAL (OpenAL Soft is included) | | +| **Other** | | Optional COM ports for custom control panel setups | + +The RAM, VRAM, disk and processor figures are those of the previous release and have not been measured again with the OpenGL 4.6 renderer. + +**Graphics card.** The default renderer needs an OpenGL 4.6 core profile context and has no fallback: without one, the simulator writes the OpenGL version the driver offers to `log.txt` (on Windows also in a message box) and ends. See [docs/opengl46-renderer.md](docs/opengl46-renderer.md). OpenGL 4.6 drivers exist for: + +- **NVIDIA:** GeForce 400 (Fermi) and newer on Windows, GeForce 600 (Kepler) and newer on Linux; current drivers support newer generations only. +- **AMD:** Radeon HD 7700 and newer (GCN) on Windows (Adrenalin 18.4.1 or newer) and on Linux (Mesa, `radeonsi`). The older TeraScale cards (HD 5000/6000, HD 7350–7670) stop at OpenGL 4.5 on Windows. +- **Intel:** HD Graphics 500 series (6th generation Core, Skylake) and newer on Windows. Haswell and Broadwell graphics (HD 4x00, HD 5x00, HD 6000) stop at OpenGL 4.3/4.4 on Windows. + +On Linux, `glxinfo -B` should report an `OpenGL core profile version string` of 4.6 or newer. + +**Vulkan renderer** (optional, `gfxrenderer vulkan` in `eu07.ini`): needs a Vulkan 1.4 driver. When there is none, the simulator logs the reason and uses OpenGL 4.6. Vulkan 1.4 drivers exist for NVIDIA GeForce GTX 750 Ti (Maxwell) and newer, AMD Radeon RX 5000 (RDNA) and newer on Windows (on Linux Radeon RX 400 / Polaris and newer with Mesa 25.0 or newer), and Intel Iris Xe / UHD 700 series (11th generation Core) and Arc on Windows (on Linux HD Graphics 500 / 6th generation Core and newer, Mesa). DLSS needs an NVIDIA GeForce RTX card. + +**Processor.** The builds are made for processors with **AVX2**: Intel Core of the 4th generation (Haswell, 2013) or newer, AMD Ryzen, or AMD of the Excavator generation (2015) or newer. Many Intel Pentium and Celeron processors don't have AVX2. On a processor without it, the simulator says so and ends. For such processors, the CI also builds a variant without AVX2 (`-DENABLE_AVX2=OFF`, its file name ends with `_noavx2`), for `master` only. The simulator spreads its work over all the logical cores of the processor. ## License diff --git a/docs/opengl46-renderer.md b/docs/opengl46-renderer.md index 39045ca63..e1fac696f 100644 --- a/docs/opengl46-renderer.md +++ b/docs/opengl46-renderer.md @@ -10,9 +10,16 @@ For how the lights are handled, see [clustered-lighting.md](clustered-lighting.m - A graphics card and driver that provide **OpenGL 4.6** (core profile). What the driver offers is written to the log at start: `Renderer:`, `Vendor:` and `GL version:`. -- A CPU with AVX2, as before. +- Beyond the core of OpenGL 4.6: `EXT_texture_compression_s3tc` (the DDS textures) and `EXT_texture_sRGB`, and at least + 16 shader storage buffer binding points (`GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS`, `gl::MAX_SSBO_BINDINGS`; OpenGL 4.6 + itself guarantees 8). A driver without them gets an error line in the log at start, and the materials which need the + missing points don't compile (drawn pink). The drivers of integrated Intel graphics offer exactly 16 points (see + `gl/ubo.h`). +- A CPU with AVX2, as before (a build with `-DENABLE_AVX2=OFF` runs without it). - Windows and Linux. macOS provides OpenGL only up to 4.1, so the renderer does not run there. +Which graphics cards have OpenGL 4.6 drivers, and the rest of the requirements: [README](../README.md#system-requirements). + On Linux, `glxinfo -B` should report an `OpenGL core profile version string` of 4.6 or newer. ### If the simulator does not start