Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song committed Dec 12, 2024
1 parent 6caf091 commit c10231b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions native/cocos/editor-support/MiddlewareManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ MeshBuffer *MiddlewareManager::getMeshBuffer(int format) {
return mb;
}

void MiddlewareManager::updateCache() {
void MiddlewareManager::updateOperateCache() {
for (auto &iter: _operateCacheMap) {
auto it = std::find(_updateList.begin(), _updateList.end(), iter.first);
if (iter.second) {
Expand All @@ -69,7 +69,7 @@ void MiddlewareManager::updateCache() {
}

void MiddlewareManager::update(float dt) {
updateCache();
updateOperateCache();
_attachInfo.reset();
auto *attachBuffer = _attachInfo.getBuffer();
if (attachBuffer) {
Expand Down
2 changes: 1 addition & 1 deletion native/cocos/editor-support/MiddlewareManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class MiddlewareManager {
~MiddlewareManager();

private:
void updateCache();
void updateOperateCache();

ccstd::vector<IMiddleware *> _updateList;
ccstd::unordered_map<IMiddleware *, bool> _operateCacheMap;
Expand Down

0 comments on commit c10231b

Please sign in to comment.