Skip to content

Commit

Permalink
doom: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
and3rson committed Feb 14, 2024
1 parent 38a8352 commit 1c4ade0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions firmware-doom/lib/doomgeneric/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

Ця бібліотека містить модифікований код з <https://github.com/ozkl/doomgeneric>.

Оскільки ESP32-S3 має всього 400 КБ SRAM, деякі масиви не поміщаються в RAM, і їх потрібно динамічно ініціалізувати в heap всередині PSRAM.
Оскільки ESP32-S3 має всього 400 КБ SRAM, деякі масиви не поміщаються в RAM, і їх потрібно динамічно ініціалізувати в heap всередині PSRAM (якої може бути аж до 16 МБ).

Тому найважливіша зміна - це заміна деяких стекових алокацій пам'яті на динамічну (malloc/free), наприклад:

```cpp
Expand Down Expand Up @@ -33,5 +34,6 @@ void R_FreePlanes (void)
}
```
Повний перелік нових алокацій знаходиться в <./src/d_alloc.c>.
Він викликається в <./src/doomgeneric.c>.
Повний перелік нових алокацій знаходиться в [d_alloc.c](./src/d_alloc.c).
Він викликається в [doomgeneric.c](./src/doomgeneric.c).

0 comments on commit 1c4ade0

Please sign in to comment.