MediaPipeUnityPlugin icon indicating copy to clipboard operation
MediaPipeUnityPlugin copied to clipboard

Memory Leakage causing lagging after some time in play mode

Open joshiKuldeep opened this issue 1 year ago • 4 comments

Plugin Version or Commit ID

v0.14.3

Unity Version

2022.3.27f1

Your Host OS

Windows 10

Target Platform

Windows Standalone

Target Device

No response

[Windows Only] Visual Studio C++ and Windows SDK Version

No response

[Linux Only] GCC/G++ and GLIBC Version

No response

[Android Only] Android Build Tools and NDK Version

No response

[iOS Only] XCode Version

No response

Build Command

I am not building native lib, I am just importing the mediaipipe.unity package

Bug Description

On entering play mode, at first its starting the scene with fps more than 40. But after some time, 55-60 seconds in my case (based on system) its showing lag and drop in fps from 45 to 8 or less.

Steps to Reproduce the Bug

  1. Select any scene eg. Pose Tracking or Task
  2. Enter into play mode
  3. After in between 60 and 120 seconds, the fps is dropping and its starting lagging.

Log

NA

Screenshot/Video

Screenshot 2024-05-22 183820 image image

Additional Context

No response

joshiKuldeep avatar May 22 '24 13:05 joshiKuldeep

How did you determine that a memory leak is the cause?

homuler avatar May 23 '24 09:05 homuler

using memory profiler.

joshiKuldeep avatar May 26 '24 10:05 joshiKuldeep

I mean, assuming there was a memory leak, why did you think that it was causing the delay?

homuler avatar May 27 '24 12:05 homuler

Oh got it. Because the spike in memory and lagging is happening simultaneously. Please check or let me know if I need to share something specific to expedit the solution.

joshiKuldeep avatar May 27 '24 14:05 joshiKuldeep