Skip to content

Commit

Permalink
* Update MWAS, some more fixes.
Browse files Browse the repository at this point in the history
* Lower networker thread count to 4 with 2 interactive. Apparently works better in my Windows 2000 VM with no loss of interactivity.
  • Loading branch information
iProgramMC committed May 27, 2024
1 parent 5da5884 commit 53b4ddb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deps/mwas
Submodule mwas updated 3 files
+5 −1 README.md
+10 −0 include/ri/reimpl.hpp
+61 −0 src/reimpl.cpp
4 changes: 2 additions & 2 deletions src/windows/NetworkerThread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ struct NetworkResponse
int m_code; // 200 = OK, 404 = Not Found, 403 = Forbidden, 401 = Unauthorized
};

#define C_AMT_NETWORKER_THREADS (16)
#define C_INTERACTIVE_NETWORKER_THREADS (8)
#define C_AMT_NETWORKER_THREADS (4)
#define C_INTERACTIVE_NETWORKER_THREADS (2)

class NetworkerThread
{
Expand Down
4 changes: 2 additions & 2 deletions src/windows/ProfilePopout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,12 +495,12 @@ void DeferredShowProfilePopout(const ShowProfilePopoutParams& params)
}

POINT pt { x + wndWidth / 2, y + wndHeight / 2 };
HMONITOR mon = MonitorFromPoint(pt, MONITOR_DEFAULTTONEAREST);
HMONITOR mon = ri::MonitorFromPoint(pt, MONITOR_DEFAULTTONEAREST);

if (mon) {
MONITORINFO mi{};
mi.cbSize = sizeof mi;
GetMonitorInfo(mon, &mi);
ri::GetMonitorInfo(mon, &mi);

if (x < mi.rcWork.left)
x = mi.rcWork.left;
Expand Down
2 changes: 2 additions & 0 deletions src/windows/WinUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,9 @@ int MapIconToOldIfNeeded(int iconID)
case IDI_TYPING_FRAME2: return IDI_TYPING_FRAME2_2K;
case IDI_TYPING_FRAME3: return IDI_TYPING_FRAME3_2K;
case IDI_REPLY_PIECE: return IDI_REPLY_PIECE_2K;
case IDI_SHIFT_RIGHT: return IDI_SHIFT_RIGHT_2K;
case IDI_NEW_INLINE: return IDI_NEW_INLINE_2K;
case IDI_SHIFT_LEFT: return IDI_SHIFT_LEFT_2K;
case IDI_CATEGORY: return IDI_CATEGORY_2K;
case IDI_CHANNEL: return IDI_CHANNEL_2K;
case IDI_MEMBERS: return IDI_MEMBERS_2K;
Expand Down

0 comments on commit 53b4ddb

Please sign in to comment.