diff options
| author | NeoBrainX <NeoBrainX@googlemail.com> | 2011-09-30 17:46:34 +0200 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@googlemail.com> | 2011-09-30 17:47:08 +0200 |
| commit | adef86c1ef29da8b51dc3c0a3dc3c296d62e13aa (patch) | |
| tree | 45fa46a3ad3d40cd5cc2da5bfca3534be440d895 /Source/Core/Common | |
| parent | 175ade74d74d9b4e33878b80c7134b9cbf3ea207 (diff) | |
| parent | 7eb06430ed35f73a073ca9851e199777a6695114 (diff) | |
Merge branch 'new-shadercache-uids'
This branch vastly reduces stuttering caused by redundant shader compilations.
With this code Red Steel 2 has much less stuttering and is actually playable on my hardware now. Other games probably benefit in other ways as well, but don't expect all kinds of stuttering to be magically fixed now.
For reference: Set EnableShaderDebugging to True if you experience any regressions, it should automatically tell you what's wrong then.
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Src/LinearDiskCache.h | 6 | ||||
| -rw-r--r-- | Source/Core/Common/Src/MsgHandler.cpp | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Source/Core/Common/Src/LinearDiskCache.h b/Source/Core/Common/Src/LinearDiskCache.h index 7a124aaa7b..f213d2959e 100644 --- a/Source/Core/Common/Src/LinearDiskCache.h +++ b/Source/Core/Common/Src/LinearDiskCache.h @@ -21,12 +21,10 @@ #include "Common.h" #include <fstream> -// Update this to the current SVN revision every time you change shader generation code. -// We don't automatically get this from SVN_REV because that would mean regenerating the -// shader cache for every revision, graphics-related or not, which is simply annoying. +// Increment this every time you change shader generation code. enum { - LINEAR_DISKCACHE_VER = 6964 + LINEAR_DISKCACHE_VER = 6967 }; // On disk format: diff --git a/Source/Core/Common/Src/MsgHandler.cpp b/Source/Core/Common/Src/MsgHandler.cpp index 3f68e1d29a..7c666227aa 100644 --- a/Source/Core/Common/Src/MsgHandler.cpp +++ b/Source/Core/Common/Src/MsgHandler.cpp @@ -86,7 +86,7 @@ bool MsgAlert(bool yes_no, int Style, const char* format, ...) va_list args; va_start(args, format); - CharArrayFromFormatV(buffer, 2047, str_translator(format).c_str(), args); + CharArrayFromFormatV(buffer, sizeof(buffer)-1, str_translator(format).c_str(), args); va_end(args); ERROR_LOG(MASTER_LOG, "%s: %s", caption.c_str(), buffer); |
