Commit Graph

14 Commits

Author SHA1 Message Date
Lephenixnoir c04efa5319
Measure file mapping time 2021-07-27 18:43:20 +02:00
Lephenixnoir 75c8730451
Restore fast copies using the fxlibc memcpy() 2021-07-27 15:05:42 +02:00
Lephenixnoir d7ee5a1bbb
Restore video system screens and memcpy bug in V_CopyRect
* Restore screen numbers; BG is 4, at least in the ST module.
* Let ST module allocate BG, which is just 32 pixels high and not a full
  VRAM (huge memory gain!)
* Fix V_CopyRect() not working because memcpy is still broken (this will
  be changed later with a proper memcpy)
2021-07-27 14:20:14 +02:00
Lephenixnoir 271d9d588d
Clean up more warnings 2021-07-27 11:34:35 +02:00
Lephenixnoir 91f8dca1cb
Clean up more very old or unusable code 2021-07-27 11:19:39 +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 fabdac0b33
Copy manually from flash instead of syscall memcpy
It sure looks like it's broken in certain situations, altough only a
complete disassembly would prove that.
2021-07-26 17:33:00 +02:00
Lephenixnoir f869f45d0d
Split in ROM sectors of 512 bytes instead of clusters of 4 kiB
This makes the search quite a bit slower, I'll look into that later.
2021-07-26 17:25:26 +02:00
Lephenixnoir 7a75e46715
Use memset() in CGDCalloc() again
The bug was libfxcg's sys_calloc() using a memsetZero() function which
simply doesn't work properly.
2021-07-17 16:36:31 +02:00
Lephenixnoir 29b0bffc21
Initialize memory allocator with 422 kB system stack
Instead of ProgrammerNerd's in-user-stack 256 kB stack which works both
quickly hits its size limit when playing.
2021-07-17 10:50:20 +02:00
Lephenixnoir 7db1f33862
Don't use memset() in CGDCalloc
I have no idea why it doesn't work, but it doesn't.
2021-07-17 10:48:38 +02:00
Lephenixnoir 670e3a4b50
Improve I_ErrorI for 32-bit output 2021-07-17 10:47:37 +02:00
Computer Nerd 6bd7e296b4 Possible CG-50 update. 2019-04-04 00:11:35 -05:00
ComputerNerd bd6bb43473 Inital commit 2015-04-14 19:16:51 -05:00