Skip to content

Entity cache-related cleanup#1962

Merged
slipher merged 4 commits intoDaemonEngine:masterfrom
slipher:entcache-cleanup
May 1, 2026
Merged

Entity cache-related cleanup#1962
slipher merged 4 commits intoDaemonEngine:masterfrom
slipher:entcache-cleanup

Conversation

@slipher
Copy link
Copy Markdown
Member

@slipher slipher commented Apr 29, 2026

The most important thing there is Fix null renderer SyncLerpTags: this ensures the tty client's IPC response has the expected number of requested items. The current behavior of returning and empty vector is prone to cause crashes if the cgame assumes the vector has the right length.

Rest of the commits are just cosmetic.

slipher added 4 commits April 29, 2026 18:11
It should return a response with the expected number of items.
It could be annoying when following the call hierarchy across the
function pointers, if the functions have different name than the
function pointers.
void trap_R_DrawStretchPic( float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader );
void trap_R_DrawRotatedPic( float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader, float angle );
void trap_R_ModelBounds( clipHandle_t model, vec3_t mins, vec3_t maxs );
int trap_R_LerpTag( orientation_t *tag, const refEntity_t* refent, const char *tagName, int startIndex );
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we care about compat with other games? this is a regular q3 trap call right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to provide an API matching the ioq3 one. But this function (recently deleted) does not have the same signature as the original anyway. See #1964

@slipher slipher merged commit 27bc966 into DaemonEngine:master May 1, 2026
9 checks passed
@slipher slipher deleted the entcache-cleanup branch May 1, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants