Commit Graph

18 Commits

Author SHA1 Message Date
Lephenixnoir 9e89a6983a
Fairly massive refactoring 2021-10-01 20:52:05 +02:00
Lephenixnoir b9fcd7808e
Restore printfs and reduce calc/emulator distance 2021-09-30 12:17:15 +02:00
Lephenixnoir 31daa78aa0
Emulator progress: build, link, some startup 2021-09-20 10:24:18 +02:00
Lephenixnoir 5f9e27b07a
Some cleaning and slight emulator progress 2021-09-19 23:34:30 +02:00
Lephenixnoir c8d897e819
Get rid of standard string functions 2021-09-19 19:16:50 +02:00
Lephenixnoir e9ce72512f
Restore printf-like error messages 2021-09-16 07:21:38 +02:00
Lephenixnoir 7d5a81d375
Prevent GCC from turning PRAM_Zalloc into PRAM_Malloc + memset 2021-09-08 18:17:19 +02:00
Lephenixnoir 1f290006f1
Scrap some memory and somehow avoid heap fragmentation 2021-08-31 19:18:55 +02:00
Lephenixnoir fe82cef7c3
Add a powerful profiler (libprof) 2021-08-25 11:09:35 +02:00
Lephenixnoir 96c7a8bb11
Watch unaligned lumps and per-region free heap 2021-08-24 19:12:30 +02:00
Lephenixnoir 751d5f186d
Add a PRAM heap and move some of the data there
It's a 32-bit-access-only heap. On the Ultimate Doom WAD the amount of
data moved is about 17 kiB, which is not a lot, but arrays with 4-byte
elements are not easy to find in Doom.
2021-08-12 21:01:35 +02:00
Lephenixnoir 6a73494e2c
Force lump allocation for unaligned Flash addresses 2021-08-04 12:08:07 +02:00
Lephenixnoir b9c676ea4e
Support multiple zones in Z_Malloc and add user stack leftover
lumpinfo is now allocated in Z_Malloc because it's needed for some
larger WADs.

More heap is needed to compensate and to support larger WADs fully, so
the unused part of the user stack is added as a second zone.

This makes at least the start of the DOOM Ultimate WAD playable.
2021-07-29 16:45:26 +02:00
Lephenixnoir e18b08d5e4
Add a file loading progress bar
The bar takes up a little bit of time too, but I think it's a plus.
Currently it's limited to ~20 frames which is normally < 0.3s. A frame
every fragment is disastrous in comparison (loading time x3 lol).
2021-07-29 11:40:09 +02:00
Lephenixnoir 271d9d588d
Clean up more warnings 2021-07-27 11:34:35 +02:00
Lephenixnoir f477b87e50
Clean up file access + allow using BFile as an option
BFile can now be selected in <platform.h> by defining CGDOOM_WAD_BFILE
instead of CGDOOM_WAD_MAPPING. The DMA option is not implemented yet.

BFile works as expected - a lot of stuttering due to reads during
gameplay. But the status bar texture still doesn't load properly!
2021-07-27 11:12:31 +02:00
Lephenixnoir e9366e7dcf
Add an error if a lump cannot be loaded 2021-07-17 16:41:42 +02:00
ComputerNerd bd6bb43473 Inital commit 2015-04-14 19:16:51 -05:00