mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 00:20:16 +00:00
fix: animation stutter, resolution crash, memory cap, spell tooltip hints, GO collision
- Animation stutter: skip playAnimation(Run) for the local player in the server movement callback — the player renderer state machine already manages it; resetting animTime on every movement packet caused visible stutter - Resolution crash: reorder swapchain recreation so old swapchain is only destroyed after confirming the new build succeeded; add null-swapchain guard in beginFrame to survive the retry window - Memory cap: reduce cache budget from 80% uncapped to 50% hard-capped at 16 GB to prevent excessive RAM use on high-memory systems - Spell tooltip: suppress "Drag to action bar / Double-click to cast" hints when the tooltip is shown from the action bar (showUsageHints=false) - M2 collision: add watermelon/melon/squash/gourd to foliage (no-collision); exclude chair/bench/stool/seat/throne from smallSolidProp so invisible chair bounding boxes no longer trap the player
This commit is contained in:
parent
8f2974b17c
commit
19eb7a1fb7
7 changed files with 60 additions and 30 deletions
|
|
@ -189,7 +189,7 @@ bool SpellbookScreen::renderSpellInfoTooltip(uint32_t spellId, game::GameHandler
|
|||
if (!dbcLoadAttempted) loadSpellDBC(assetManager);
|
||||
const SpellInfo* info = getSpellInfo(spellId);
|
||||
if (!info) return false;
|
||||
renderSpellTooltip(info, gameHandler);
|
||||
renderSpellTooltip(info, gameHandler, /*showUsageHints=*/false);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -446,7 +446,7 @@ const SpellInfo* SpellbookScreen::getSpellInfo(uint32_t spellId) const {
|
|||
return (it != spellData.end()) ? &it->second : nullptr;
|
||||
}
|
||||
|
||||
void SpellbookScreen::renderSpellTooltip(const SpellInfo* info, game::GameHandler& gameHandler) {
|
||||
void SpellbookScreen::renderSpellTooltip(const SpellInfo* info, game::GameHandler& gameHandler, bool showUsageHints) {
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::PushTextWrapPos(320.0f);
|
||||
|
||||
|
|
@ -551,8 +551,8 @@ void SpellbookScreen::renderSpellTooltip(const SpellInfo* info, game::GameHandle
|
|||
ImGui::TextWrapped("%s", info->description.c_str());
|
||||
}
|
||||
|
||||
// Usage hints
|
||||
if (!info->isPassive()) {
|
||||
// Usage hints — only shown when browsing the spellbook, not on action bar hover
|
||||
if (!info->isPassive() && showUsageHints) {
|
||||
ImGui::Spacing();
|
||||
ImGui::TextColored(ImVec4(0.3f, 1.0f, 0.3f, 1.0f), "Drag to action bar");
|
||||
ImGui::TextColored(ImVec4(0.3f, 1.0f, 0.3f, 1.0f), "Double-click to cast");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue