CesiumGS / cesium-unity

Bringing the 3D geospatial ecosystem to Unity
https://cesium.com/platform/cesium-for-unity/
Apache License 2.0
355 stars 85 forks source link

Cache read/write exceptions #505

Open zzj9426 opened 1 month ago

zzj9426 commented 1 month ago

When loading a new 3D tiles, the log content of the database is locked, and it is initially speculated that the SQLite database is continuously locked because a thread has not been released, resulting in subsequent data cannot be written normally 屏幕截图 2024-09-12 190418 屏幕截图 2024-09-12 190435 屏幕截图 2024-09-12 190457 屏幕截图 2024-09-12 190513 屏幕截图 2024-09-12 190620 屏幕截图 2024-09-12 190659 屏幕截图 2024-09-12 190724 屏幕截图 2024-09-12 190749

kring commented 1 month ago

@zzj9426 that's usually caused by running two copies of a game at the same time. It can also sometimes be caused by running the Editor and a game at the same time. When you see those messages, load performance may be reduced because the request cache is not operating, but it is otherwise harmless.

zzj9426 commented 1 month ago

这通常是由于同时运行两个游戏副本引起的。有时也可能是由于同时运行 Editor 和游戏引起的。当您看到这些消息时,加载性能可能会降低,因为请求缓存未运行,但在其他方面是无害的。

Doesn't this affect the normal cache writes?What does it mean to run two copies of the game at the same time?

kring commented 1 month ago

Doesn't this affect the normal cache writes?

Yes. When the database is locked, writes are not possible.

What does it mean to run two copies of the game at the same time?

You have a copy of the built game executable stored in some directory. Then you launch that executable a second time without closing the first one. A common scenario is storing the game on a shared network drive and running it from two different machines simultaneously.