Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug: add assertions for easier engine debugging #73

Open
7 of 9 tasks
jorgegv opened this issue Jan 16, 2022 · 0 comments
Open
7 of 9 tasks

debug: add assertions for easier engine debugging #73

jorgegv opened this issue Jan 16, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request ongoing
Milestone

Comments

@jorgegv
Copy link
Owner

jorgegv commented Jan 16, 2022

Add DEBUG_ASSERT calls in all engine modules to check for conditions that should be met at all times.

DEBUG_ASSERT calls only get compiled when building with RAGE1_DEBUG=1 environment, and are defined to null if that variable is not defined (so no impact in production).

The need for this has been identified by spurious hangs when playing FAMARGON (heavy sprite, memory and tile usage)

Modules to examine:

  • main
  • memory
  • dataset
  • codeset
  • sp1
  • hero
  • game_loop
  • map
  • enemy
@jorgegv jorgegv added enhancement New feature or request urgent labels Jan 16, 2022
@jorgegv jorgegv added this to the Release 0.5.0 milestone Jan 16, 2022
@jorgegv jorgegv self-assigned this Jan 16, 2022
@jorgegv jorgegv modified the milestones: Release 0.5.0, Release 0.6.0 Sep 12, 2022
@jorgegv jorgegv removed the urgent label Oct 4, 2022
@jorgegv jorgegv modified the milestones: Release 0.6.0, Release 0.7.0 Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ongoing
Projects
None yet
Development

No branches or pull requests

1 participant