If mGame.lblStats.IsInitialized And mGame.lblStats.Visible Then
Dim Stats As String = $"FPS: ${NumberFormat(FPS, 0, 0)}, Time: ${ConvertMillisecondsToString(gs.GameTimeMs)}"$
Stats = Stats & $", Bodies: ${AllBodies.Size}, ScreenAABB: ($1.1{ScreenAABB.BottomLeft.X},$1.1{ScreenAABB.BottomLeft.Y})-($1.1{ScreenAABB.TopRight.X},$1.1{ScreenAABB.TopRight.Y})"$
If IsDebugDrawEnabled Then
Stats = Stats & ", DebugDraw!"
End If
#if debug
Stats = "DEBUG MODE! " & Stats
#End If
mGame.lblStats.Text = Stats
End If
Done. It's ok now, but...Looks like, yes. Change it and try again...
'Deletes the body.
Public Sub Delete (GS As X2GameStep)
If IsDeleted Then Return
#if Not (X2SkipLogs)
Log($"Deleting body: ${Name}, ${Id}"$)
#end if
IsDeleted = True
GS.BodiesToDelete.Add(Body)
If mGraphicName.StartsWith(X2.GraphicCache.TempPrefix) Then
X2.GraphicCache.RemoveGraphics(mGraphicName)
End If
End Sub
#if debug and Not (X2SkipLogs)
Log($"Deleting body: ${Name}, ${Id}"$)
#end if
I think that it is not the only log. Not a good solution, I think.You are free to edit it
Try
B4X:#if debug and Not (X2SkipLogs) Log($"Deleting body: ${Name}, ${Id}"$) #end if
I think that it is not the only log.
I know, but this wouldn't be a solution for all of us, just for meyou can edit them if you want. Noone stops you from doing it.
Works.Trying:
But it is only for you...Works
But it is only for you...
not found (before, of course )This is the intended behavior.
You can add X2SkipLogs to remove the frequent logs (https://www.b4x.com/android/forum/threads/b4x-x2-xui2d-box2d-game-engine.95208/#content).