MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Base_Update

Method Base_Update

Source/Engine/Video/MF/VideoBackendMF.cpp:613–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613void VideoBackendMF::Base_Update(TaskGraph* graph)
614{
615 double time = Platform::GetTimeSeconds();
616 MF::UpdateDeltaTime = TimeSpan::FromSeconds(time - MF::UpdateTime);
617 MF::UpdateTime = time;
618
619 // Schedule work to update all videos in async
620 Function<void(int32)> job;
621 job.Bind(MF::UpdatePlayer);
622 graph->DispatchJob(job, MF::Players.Count());
623}
624
625void VideoBackendMF::Base_Dispose()
626{

Callers 1

ExecuteMethod · 0.45

Calls 3

DispatchJobMethod · 0.80
BindMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected