MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / BeginLevelLoad

Method BeginLevelLoad

neo/renderer/ModelManager.cpp:496–512  ·  view source on GitHub ↗

================= idRenderModelManagerLocal::BeginLevelLoad ================= */

Source from the content-addressed store, hash-verified

494=================
495*/
496void idRenderModelManagerLocal::BeginLevelLoad() {
497 insideLevelLoad = true;
498
499 for ( int i = 0 ; i < models.Num() ; i++ ) {
500 idRenderModel *model = models[i];
501
502 if ( com_purgeAll.GetBool() && model->IsReloadable() ) {
503 R_CheckForEntityDefsUsingModel( model );
504 model->PurgeModel();
505 }
506
507 model->SetLevelLoadReferenced( false );
508 }
509
510 // purge unused triangle surface memory
511 R_PurgeTriSurfData( frameData );
512}
513
514/*
515=================

Callers

nothing calls this directly

Calls 7

R_PurgeTriSurfDataFunction · 0.85
IsReloadableMethod · 0.80
NumMethod · 0.45
GetBoolMethod · 0.45
PurgeModelMethod · 0.45

Tested by

no test coverage detected