Leonardo Serrano
Leonardo Serrano
Hello @ebachard I'd say your problem is here: ```cpp static float rotation = (ImGui::IsKeyPressed(ImGui::GetIO().KeyCtrl) == true) ? radius_y / radius_x : 0.0f; ``` Specifically, `(ImGui::IsKeyPressed(ImGui::GetIO().KeyCtrl) == true)` is probably not...
You are probably right, @ocornut there is not an outstanding reason for why I've added rotation to ellipses. It was a combination of my own personal need and the fact...
For background, I'm using ImGui's primitives for a quick program to render a 2D model of the solar system. Trying to avoid either writing up my own methods for primitives...
Haha, I meant I was TRYING to avoid writing my own methods. Actually, I think a more performant solution for me would be to draw my ellipses w/ GLSL especially...
Prototype code (should give you an idea of how this can be implemented simply): ```kotlin class CpuAttributesSpanProcessor : ExtendedSpanProcessor { companion object { const val CPU_AVERAGE_ATTRIBUTE = "process.cpu.avg_utilization" const val...
idea: Could [android.os.Debug.threadCpuTimeNanos()](https://developer.android.com/reference/android/os/Debug#threadCpuTimeNanos()) give us a more reliable / accurate view on CPU time? In Android SIG meeting today we discussed the possibility of `android.os.Process.getElapsedCpuTime()` not really providing an accurate...
Separate problem: Can a single span do work across multiple spans? If so, then CPU measure isn't really useful.
After some research, I've determined that `android.os.Process.getElapsedCpuTime()` does return what it should: https://android.googlesource.com/platform/frameworks/base/+/donut-release/core/jni/android_util_Process.cpp#823 It uses the `clock_gettime` POSIX function using the `CLOCK_PROCESS_CPUTIME_ID` clock id, which returns a high-resolution per-process CPU...
> The problem with detecting the first frame to be drawn is that, as you mentioned, it doesn't mean the Activity is ready to be consumed, it also doesn't necessarily...