From patchwork Tue Jun 19 09:53:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alexandros.frantzis@linaro.org X-Patchwork-Id: 9449 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id F2B2523E55 for ; Tue, 19 Jun 2012 09:53:13 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id A5C2BA187A8 for ; Tue, 19 Jun 2012 09:53:13 +0000 (UTC) Received: by ggnf1 with SMTP id f1so4826191ggn.11 for ; Tue, 19 Jun 2012 02:53:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=ZH/eFsqjK7kS+gG+lmet7PCSE/GKxo5C6k6XzohTed8=; b=ZSJ+mhsAZOANO0D5wnr7zPAo/6Ccyfpr2uuMp6Ya78YzxsSQYkl+yP2R1p/ld36TWJ 4UCc2SdS78uF+WJwZ7ewMRu0Q3CHM/H5Jte5z/qWMvzP1dGEKCcXUx0cXzF8jANxA9iu cGOcSx07EtIoozxHQG4urnvv7MFRxutrNEFzmFhd1EQtONNttTL8x7avBud3rjugqA90 3FcrwFVDEQIceCGy0jqE/P1jaiSTMGY9D7uqDFady4skBPmRQ9chB+jzcN+uURecheex lnRYCkcxr1wnC6WJ9IoQd9+Alhlz+vt10WWzN5j/33GlKcTr8fTEWHvSCIeOsean6hMM qWTw== Received: by 10.42.210.193 with SMTP id gl1mr7158060icb.57.1340099593082; Tue, 19 Jun 2012 02:53:13 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp115662ibb; Tue, 19 Jun 2012 02:53:11 -0700 (PDT) Received: by 10.180.80.228 with SMTP id u4mr1958382wix.5.1340099591476; Tue, 19 Jun 2012 02:53:11 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id o16si24387957wee.121.2012.06.19.02.53.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jun 2012 02:53:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Sgv7W-0006ml-Su for ; Tue, 19 Jun 2012 09:53:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id C8C38E00AA for ; Tue, 19 Jun 2012 09:53:10 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: glmark2 X-Launchpad-Branch: ~glmark2-dev/glmark2/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 222 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~glmark2-dev/glmark2/trunk] Rev 222: MainLoop, Android: Display average frame time in addition to FPS for each scene. Message-Id: <20120619095310.15926.48978.launchpad@ackee.canonical.com> Date: Tue, 19 Jun 2012 09:53:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15435"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: eaef23392267ec8cb1d310f09043591ec9a21335 X-Gm-Message-State: ALoCoQknuxTJTCR1HCGGFaK7tYOEt+yJIvaBOOUdo5r5scJdFMk8UkjBg+ATJKE9zGV5oaZxT9Wo ------------------------------------------------------------ revno: 222 committer: Alexandros Frantzis branch nick: frame-time timestamp: Fri 2012-06-15 16:24:32 +0300 message: MainLoop,Android: Display average frame time in addition to FPS for each scene. modified: src/android.cpp src/main-loop.cpp --- lp:glmark2 https://code.launchpad.net/~glmark2-dev/glmark2/trunk You are subscribed to branch lp:glmark2. To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription === modified file 'src/android.cpp' --- src/android.cpp 2012-05-15 12:28:51 +0000 +++ src/android.cpp 2012-06-15 13:24:32 +0000 @@ -48,8 +48,10 @@ virtual void log_scene_result() { - Log::info("%s FPS: %u", scene_->info_string().c_str(), - scene_->average_fps()); + Log::info("%s FPS: %u FrameTime: %.3f ms\n", + scene_->info_string().c_str(), + scene_->average_fps(), + 1000.0 / scene_->average_fps()); } }; === modified file 'src/main-loop.cpp' --- src/main-loop.cpp 2012-02-15 17:09:14 +0000 +++ src/main-loop.cpp 2012-06-15 13:24:32 +0000 @@ -134,8 +134,11 @@ void MainLoop::log_scene_result() { - static const std::string format(Log::continuation_prefix + " FPS: %u\n"); - Log::info(format.c_str(), scene_->average_fps()); + static const std::string format_fps(Log::continuation_prefix + " FPS: %u"); + static const std::string format_ms(Log::continuation_prefix + " FrameTime: %.3f ms\n"); + + Log::info(format_fps.c_str(), scene_->average_fps()); + Log::info(format_ms.c_str(), 1000.0 / scene_->average_fps()); } void