[osg-users] DatabasePager priority simplifier and stats added
Zach Deedler
mynamezach at gmail.com
Mon Sep 3 17:54:36 PDT 2007
Or you can set the windows environment variable:
set OSG_DATABASE_PAGER_PRIORITY=HIGH
(or set it in the system settings; Start Menu->Control
Panel->System->Advanced->Environment Variables)
_____
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Serge Lages
Sent: Monday, September 03, 2007 12:03 PM
To: osg-users at lists.openscenegraph.org
Subject: Re: [osg-users] DatabasePager priority simplifier and stats added
Hi Christophe,
On 9/3/07, christophe loustaunau <christophe.loustaunau at gmail.com> wrote:
Hello,
I wan't to test the new databasePager priority, but I don't know how to use
it...
If I do :
export OSG_DATABASE_PAGER_PRIORITY=HIGH;
I have some errors like :
warning C4237: 'export' keyword is not yet supported, but reserved for
future use
error C2146: syntax error : missing ';' before identifier
'OSG_DATABASE_PAGER_PRIORITY'
What I am doing wrong ?
export OSG_DATABASE_PAGER_PRIORITY=HIGH is the Linux way to set an
environment variable.
If you want to set it into your code, you should try something like:
viewer.getDatabasePager()->setScedulePriority(OpenThreads::THREAD_PRIORITY_*
);
(setting THREAD_PRIORITY_* the value you want).
--
Serge Lages
http://www.magrathea-engine.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070903/c2201efc/attachment.html
More information about the osg-users
mailing list