SerVB
06/20/2020, 12:50 AMval c = circle()
and then when I don't need it I must do c.removeFromParent()
to avoid memory leaks. Can I just draw a circle without creating an object? Like in Canvas2D Web API, for example?Deactivated User
06/20/2020, 1:07 AMDeactivated User
06/20/2020, 1:18 PMclear
inside g.applyDeactivated User
06/20/2020, 1:18 PMDeactivated User
06/20/2020, 1:20 PMSerVB
06/20/2020, 1:39 PMGdx.gl.glClearColor(0, 0, 0, 1)
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT)
shapeRenderer.begin(ShapeType.Filled)
shapeRenderer.setColor(255 / 255.0f, 255 / 255.0f, 0 / 255.0f, 1f)
with(rect) { shapeRenderer.rect(x, y, width, height) }
shapeRenderer.end()
There I could easily draw many primitives at 144 FPS. I think there was no hacks with software rasterizing...
Is it possible to optimize this in KorGE? Of course, there are many places where you can prealocate Views to draw, but also there are cases when you don't know which and how many primitives you need to draw, and it seems KorGE can't handle these cases effectively now.Deactivated User
06/20/2020, 1:40 PMDeactivated User
06/20/2020, 1:40 PMDeactivated User
06/20/2020, 1:40 PMDeactivated User
06/20/2020, 1:41 PMDeactivated User
06/20/2020, 1:41 PMDeactivated User
06/20/2020, 1:41 PM