From patchwork Thu Aug 4 14:24:25 2011 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: 3269 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 02DD423F3D for ; Thu, 4 Aug 2011 14:24:28 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id BEF1FA182A0 for ; Thu, 4 Aug 2011 14:24:27 +0000 (UTC) Received: by qwb8 with SMTP id 8so1044509qwb.11 for ; Thu, 04 Aug 2011 07:24:27 -0700 (PDT) Received: by 10.229.241.19 with SMTP id lc19mr668392qcb.45.1312467867194; Thu, 04 Aug 2011 07:24:27 -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.229.6.73 with SMTP id 9cs15702qcy; Thu, 4 Aug 2011 07:24:26 -0700 (PDT) Received: by 10.227.9.95 with SMTP id k31mr786872wbk.71.1312467865975; Thu, 04 Aug 2011 07:24:25 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id fh19si3953165wbb.48.2011.08.04.07.24.25; Thu, 04 Aug 2011 07:24:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QoyqX-0006pm-4S for ; Thu, 04 Aug 2011 14:24:25 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 1C28B2E802E for ; Thu, 4 Aug 2011 14:24:25 +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: 117 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~glmark2-dev/glmark2/trunk] Rev 117: Average all the individual FPS values to calculate the final score. Message-Id: <20110804142425.30130.54363.launchpad@loganberry.canonical.com> Date: Thu, 04 Aug 2011 14:24:25 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13604"; Instance="initZopeless config overlay" X-Launchpad-Hash: cc0aa0ec6d62fb261d53f5e63b79f57b36c0f082 ------------------------------------------------------------ revno: 117 committer: Alexandros Frantzis branch nick: trunk timestamp: Thu 2011-08-04 15:21:27 +0100 message: Average all the individual FPS values to calculate the final score. modified: src/main.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/main.cpp' --- src/main.cpp 2011-08-02 14:29:51 +0000 +++ src/main.cpp 2011-08-04 14:21:27 +0000 @@ -116,6 +116,7 @@ do_benchmark(Canvas &canvas, vector &benchmarks) { unsigned score = 0; + unsigned int benchmarks_run = 0; for (vector::iterator bench_iter = benchmarks.begin(); bench_iter != benchmarks.end(); @@ -142,6 +143,7 @@ Log::info(" FPS: %u\n", scene.average_fps()); score += scene.average_fps(); + benchmarks_run++; } bench->teardown_scene(); @@ -150,6 +152,9 @@ break; } + if (benchmarks_run) + score /= benchmarks_run; + Log::info("=======================================================\n"); Log::info(" glmark2 Score: %u \n", score); Log::info("=======================================================\n");