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/Src/MsgHandler.cpp | |
| 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/Src/MsgHandler.cpp')
| -rw-r--r-- | Source/Core/Common/Src/MsgHandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
