aviralgarg05 commented on PR #3644:
URL: https://github.com/apache/nuttx-apps/pull/3644#issuecomment-4994199100

   Thanks for the thorough review @linguini1  going through each point:
   
   **PR description**: You're right, that was sloppy, I squashed the commits 
down but didn't re-read the description afterward, so it still had a line 
referring to multiple commits that no longer existed. Rewriting it now
   
   **Assisted-by field**: Didn't know this was now expected, will add it going 
forward, including updating this PR's commit message.
   
   **Testing section**: Fair — I have this on real hardware (ESP32-S3 board, 
RGB565 framebuffer) but didn't capture it for the PR. I'll get a screen 
recording of it running plus the crash logs from before the fixes and attach 
both.
   
   **malloc vs static arrays**: The reason was DRAM budget, these buffers 
(visplanes/openings/drawsegs/vissprites) are sized generously above vanilla 
DOOM's limits, and as static arrays they were eating into internal SRAM budget 
once this actually gets linked into a full firmware image alongside everything 
else. Heap allocation moves them onto this target's PSRAM-backed heap instead.
   
   But you're right that malloc-by-default isn't great practice, I'll put it 
behind a Kconfig option instead, so boards that don't need it keep static 
allocation as the default, and boards that are DRAM-constrained can opt in.
   
   Will push an update addressing all of this plus the inline comments one by 
one


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to