mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Add option to renderdoccmd replay to specify a loop count
This commit is contained in:
@@ -343,7 +343,7 @@ WindowingData DisplayRemoteServerPreview(bool active, const rdcarray<WindowingSy
|
||||
}
|
||||
|
||||
void DisplayRendererPreview(IReplayController *renderer, TextureDisplay &displayCfg, uint32_t width,
|
||||
uint32_t height)
|
||||
uint32_t height, uint32_t numLoops)
|
||||
{
|
||||
ANativeWindow *connectionScreenWindow = android_state->window;
|
||||
|
||||
@@ -354,11 +354,14 @@ void DisplayRendererPreview(IReplayController *renderer, TextureDisplay &display
|
||||
|
||||
out->SetTextureDisplay(displayCfg);
|
||||
|
||||
for(int i = 0; i < 100; i++)
|
||||
if(numLoops == 0)
|
||||
numLoops = 100;
|
||||
|
||||
for(uint32_t i = 0; i < numLoops; i++)
|
||||
{
|
||||
renderer->SetFrameEvent(10000000, true);
|
||||
|
||||
ANDROID_LOG("Frame %i", i);
|
||||
ANDROID_LOG("Frame %u", i);
|
||||
out->Display();
|
||||
|
||||
usleep(100000);
|
||||
|
||||
Reference in New Issue
Block a user