Skip to content

Commit

Permalink
v0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkueid committed Jan 15, 2025
1 parent 890344e commit 64dc3c4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions Main/src/LAppPal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,10 @@ csmFloat32 LAppPal::GetDeltaTime()
return static_cast<csmFloat32>(s_deltaTime);
}

bool ok = false;

void LAppPal::UpdateTime()
{
s_currentFrame = std::chrono::duration<double>(std::chrono::steady_clock::now().time_since_epoch()).count();
s_deltaTime = s_currentFrame - s_lastFrame;
if (!ok)
{
Debug("%lf %lf", s_currentFrame, s_deltaTime);
ok = true;
}
s_lastFrame = s_currentFrame;
}

Expand Down
Binary file modified package/live2d/v3/live2d.pyd
Binary file not shown.
2 changes: 1 addition & 1 deletion package/main_pygame.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def main():

if live2d.LIVE2D_VERSION == 3:
model.LoadModelJson(
os.path.join(resources.RESOURCES_DIRECTORY, "v3/Mao/Mao.model3.json")
os.path.join(resources.RESOURCES_DIRECTORY, "v3/nn/nn.model3.json")
)
else:
model.LoadModelJson(
Expand Down

0 comments on commit 64dc3c4

Please sign in to comment.