this.container = $(this.jcontainer).get(0);
var mode = this.fluidbook.settings.performance3DMode;
- if (mode===undefined || mode===null || mode === 'auto') {
+ if (mode === undefined || mode === null || mode === 'auto') {
if ($_GET['performance'] == null) {
mode = 'performancesTest';
} else {
performancesTest: function (callback) {
var _cb;
var $this = this;
+ var timeScale = 1;
if (this.performancesMode !== 'performancesTest') {
+ console.log('no perf test');
_cb = callback;
+ timeScale = 0.1;
} else {
_cb = function () {
$this.performancesEndTime = new Date();
this.prepareTurn({flip: [1, 2]}, function () {
$this.playTurn(1, function () {
_cb();
- }, 1);
+ }, timeScale);
});
},
function FluidbookSplash(fluidbook) {
this.fluidbook = fluidbook;
- this.hideSplashTimeout = 1;
+ this.hideSplashTimeout = 0.5;
this.isHidding = false;
this.init();
}
this.waitForTimer = true;
this.waitForReady = true;
- var defaultMin = 5;
+ var defaultMin = 1;
+ if (this.fluidbook.settings.performance3DMode === 'auto') {
+ defaultMin = 3;
+ }
var min = parseFloat(this.fluidbook.settings.splashMinimalTime);
if (min < defaultMin || isNaN(min)) {