save code

This commit is contained in:
xsl
2025-12-24 21:01:14 +08:00
parent f5b2d490c0
commit 6ef6e012bd
6 changed files with 53 additions and 8 deletions
+13 -4
View File
@@ -741,7 +741,7 @@ void FaceApp::render(VkCommandBuffer commandBuffer, long long frameTime)
#ifdef _WIN32
vkCmdDrawIndexed(commandBuffer, obj_indices.size(), 1, 0, 0, 0);
#else
//if (getCurrentTimeMillis() - last_update_time < 2000)
if (getCurrentTimeMillis() - last_update_time < 2000)
{
vkCmdDrawIndexed(commandBuffer, obj_indices.size(), 1, 0, 0, 0);
}
@@ -836,6 +836,18 @@ void FaceApp::initVulkan()
#endif
}
if (!_secondfaceAppInited)
{
Start();
_playMotion = true;
_secondfaceAppInited = true;
}
}
void FaceApp::clearnSecondFaceApp()
{
_secondfaceAppInited = false;
}
void FaceApp::Start()
@@ -912,9 +924,6 @@ void FaceApp::uploadVertexData() {
void FaceApp::update_face_vertex_buffer(float* pos, int pointCount)
{
if (pointCount == 0x33435342) {
return;
}
if(!isInited())
{
return;