Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e2bb25947e8b195a461879373d31304ace24c087
https://github.com/WebKit/WebKit/commit/e2bb25947e8b195a461879373d31304ace24c087
Author: Ada Chan <[email protected]>
Date: 2025-07-01 (Tue, 01 Jul 2025)
Changed paths:
A LayoutTests/model-element/model-element-multiple-loads-expected.txt
A LayoutTests/model-element/model-element-multiple-loads.html
M Source/WebKit/ModelProcess/cocoa/ModelProcessModelPlayerProxy.mm
Log Message:
-----------
[Model Element] Limit the number of models that can load in parallel to lower
peak memory footprint
rdar://153908401
https://bugs.webkit.org/show_bug.cgi?id=295257
Reviewed by Mike Wyrzykowski.
Limit the number of models that can load in parallel to 3 by default to lower
the peak footprint. When a model load is scheduled, it's appended to a Deque
and RKUSDModelLoadScheduler::loadNextModel() is called to take a loader
off that Deque to load if the number of in-progress loaders is within the limit.
RKUSDModelLoadScheduler::loadNextModel() is called whenever a loader has
finished to see if another loader can start loading.
* LayoutTests/model-element/model-element-multiple-loads-expected.txt: Added.
* LayoutTests/model-element/model-element-multiple-loads.html: Added.
Test to make sure many models created at the same time can all finish
loading in the end.
* Source/WebKit/ModelProcess/cocoa/ModelProcessModelPlayerProxy.mm:
(WebKit::RKModelLoaderUSD::load):
(WebKit::RKUSDModelLoadScheduler::singleton):
(WebKit::RKUSDModelLoadScheduler::scheduleModelLoad):
(WebKit::RKUSDModelLoadScheduler::loadNextModel):
(WebKit::ModelProcessModelPlayerProxy::load):
(WebKit::loadREModelUsingRKUSDLoader): Deleted.
Canonical link: https://commits.webkit.org/296887@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes