From: Alyssa M. <fu...@us...> - 2011-05-01 21:57:59
|
gemrb: Infinity Engine emulator The branch master has been updated via 2c87aaf9a7362e986c4e89c2fa40b9870044f5b4 (commit) Summary of changes: gemrb/plugins/BIFImporter/BIFImporter.cpp | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) from 123a43ff25e43ec6c54f7a95e3027dee75bb805b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://gemrb.git.sourceforge.net/git/gitweb.cgi?p=gemrb/gemrb;a=commitdiff;h=2c87aaf9a7362e986c4e89c2fa40b9870044f5b4 commit 2c87aaf9a7362e986c4e89c2fa40b9870044f5b4 Author: dhewg <dh...@wi...> Date: Sun May 1 23:48:05 2011 +0200 BIFImporter: epic load game speedup diff --git a/gemrb/plugins/BIFImporter/BIFImporter.cpp b/gemrb/plugins/BIFImporter/BIFImporter.cpp index 5894eca..4c42227 100644 --- a/gemrb/plugins/BIFImporter/BIFImporter.cpp +++ b/gemrb/plugins/BIFImporter/BIFImporter.cpp @@ -57,6 +57,7 @@ int BIFImporter::DecompressSaveGame(DataStream *compressed) } int All = compressed->Remains(); int Current; + int percent, last_percent = 20; if (!All) return GEM_ERROR; do { ieDword fnlen, complen, declen; @@ -78,7 +79,11 @@ int BIFImporter::DecompressSaveGame(DataStream *compressed) delete cached; Current = compressed->Remains(); //starting at 20% going up to 70% - core->LoadProgress( 20+(All-Current)*50/All ); + percent = (20 + (All - Current) * 50 / All); + if (percent - last_percent > 5) { + core->LoadProgress(percent); + last_percent = percent; + } } while(Current); return GEM_OK; ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- gemrb: Infinity Engine emulator |