1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 22:19:54 +00:00
openmw-tes3mp/apps/openmw/mwgui
scrawl 783594033a Optimize MWMechanics::Spells
Use pointers as map keys instead of string IDs. Resolves a nasty performance bottleneck on functions like hasCommonDisease() that previously had to look up all contained spells from the ESM store on every call. hasCommonDisease() is called hundreds of times per frame by the AI target update since it's used to calculate target disposition.

The total cost of hasCommonDisease() was 2.7% of the frame loop, now it's negligible.
2015-11-27 01:07:15 +01:00
..
alchemywindow.cpp Remove dead code from alchemywindow. 2015-08-24 07:43:30 -05:00
alchemywindow.hpp Reduce includes 2015-01-10 01:00:52 +01:00
backgroundimage.cpp Remove name extension for internal MyGUI textures 2015-05-15 23:21:29 +02:00
backgroundimage.hpp Add option to stretch menu backgrounds/cutscenes to the whole screen 2015-01-28 00:22:56 +01:00
birth.cpp Include cleanup 2015-07-18 20:36:28 +02:00
birth.hpp Reduce includes in MWGui 2015-01-10 03:56:06 +01:00
bookpage.cpp BookPage: implement hit test with margin for error 2015-11-09 02:57:49 +01:00
bookpage.hpp fixing MSVC 2013 warning C4244: & C4305 2015-03-08 13:07:29 +13:00
bookwindow.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
bookwindow.hpp Fix -Woverloaded-virtual clang warnings 2015-06-04 20:31:28 +02:00
charactercreation.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
charactercreation.hpp Properly apply changes when backing out of chargen dialogs (Fixes #2627) 2015-08-13 17:08:21 +02:00
class.cpp Remove useless #undef's for windows now that we have NOMINMAX flag 2015-06-12 04:39:44 +02:00
class.hpp Reduce includes in MWGui 2015-01-10 03:56:06 +01:00
companionitemmodel.cpp Include cleanup 2015-07-18 20:36:28 +02:00
companionitemmodel.hpp Remove NpcStats::mProfit and store it in the script instead 2015-01-31 22:40:40 +01:00
companionwindow.cpp Include cleanup 2015-07-18 20:36:28 +02:00
companionwindow.hpp Fix -Woverloaded-virtual clang warnings 2015-06-04 20:31:28 +02:00
confirmationdialog.cpp Fix -Woverloaded-virtual clang warnings 2015-06-04 20:31:28 +02:00
confirmationdialog.hpp Fix -Woverloaded-virtual clang warnings 2015-06-04 20:31:28 +02:00
console.cpp Escape MyGUI markup codes in console output 2015-09-26 02:08:23 +02:00
console.hpp Escape MyGUI markup codes in console output 2015-09-26 02:08:23 +02:00
container.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
container.hpp Fix -Woverloaded-virtual clang warnings 2015-06-04 20:31:28 +02:00
containeritemmodel.cpp Revert "Transfer item ownership to the buyer if item wasn't stolen" 2014-09-28 12:18:46 +02:00
containeritemmodel.hpp Fix item owner not resetting when dragging an item from a corpse to the player avatar 2014-05-15 09:54:10 +02:00
controllers.cpp fixing MSVC 2013 warning C4244: & C4305 2015-03-08 13:07:29 +13:00
controllers.hpp Reduce MyGUI includes 2015-01-10 02:50:43 +01:00
countdialog.cpp Fix -Woverloaded-virtual clang warnings 2015-06-04 20:31:28 +02:00
countdialog.hpp Fix -Woverloaded-virtual clang warnings 2015-06-04 20:31:28 +02:00
cursor.cpp OpenMW compiles and runs w/o render window 2015-04-01 17:02:15 +02:00
cursor.hpp Remove software cursor option, hw cursors seem to be working well enough 2013-11-20 06:20:16 +01:00
debugwindow.cpp Fix tab indentations in apps/ and components/ 2015-09-16 20:45:37 +02:00
debugwindow.hpp Add debug window (F10), displays Bullet's profiler output 2014-09-28 18:02:49 +02:00
dialogue.cpp Fixes for building with unity build 2015-09-24 15:21:42 +02:00
dialogue.hpp Reduce includes in MWGui 2015-01-10 03:56:06 +01:00
draganddrop.cpp Silence -Wreorder warnings, and remove -Wno-reorder. 2015-05-21 22:46:44 -05:00
draganddrop.hpp Reduce includes, move DragAndDrop to separate file 2015-01-10 01:21:17 +01:00
enchantingdialog.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
enchantingdialog.hpp Fix dangling MWWorld::Ptrs in enchanting dialog after loading save game (Fixes #1722) 2014-07-29 15:32:22 +02:00
exposedwindow.cpp Fix headers including whole MyGUI.h, forward declare where appropriate, and fix some deprecated types (WidgetPtr) 2013-03-03 13:11:02 +01:00
exposedwindow.hpp Fix headers including whole MyGUI.h, forward declare where appropriate, and fix some deprecated types (WidgetPtr) 2013-03-03 13:11:02 +01:00
formatting.cpp Icon fix 2015-06-01 01:32:02 +02:00
formatting.hpp Reduce MyGUI includes 2015-01-10 02:50:43 +01:00
hud.cpp Fixed another tooltip 2015-11-21 02:05:27 +01:00
hud.hpp Remove old FPS setting code 2015-11-07 00:13:13 +01:00
inventoryitemmodel.cpp Include cleanup 2015-07-18 20:36:28 +02:00
inventoryitemmodel.hpp Fix item owner not resetting when dragging an item from a corpse to the player avatar 2014-05-15 09:54:10 +02:00
inventorywindow.cpp Fix crash when onPcEquip script removes the equipped item (Fixes #3016) 2015-11-24 22:55:17 +01:00
inventorywindow.hpp Fix -Wunused-private-field clang warnings 2015-06-04 20:42:05 +02:00
itemmodel.cpp Don't reset the item model's sort/filter options in updatePlayer (Fixes #2863) 2015-08-16 17:49:53 +02:00
itemmodel.hpp Don't reset the item model's sort/filter options in updatePlayer (Fixes #2863) 2015-08-16 17:49:53 +02:00
itemselection.cpp Scrollbars don't save their positions between openings 2015-06-04 23:09:40 +03:00
itemselection.hpp Reduce includes, move DragAndDrop to separate file 2015-01-10 01:21:17 +01:00
itemview.cpp Don't reset the item model's sort/filter options in updatePlayer (Fixes #2863) 2015-08-16 17:49:53 +02:00
itemview.hpp Merge branch 'master' of https://github.com/OpenMW/openmw into osg 2015-06-07 15:23:54 +02:00
itemwidget.cpp Icon fix 2015-06-01 01:32:02 +02:00
itemwidget.hpp Move item count text to ItemWidget 2014-09-19 09:29:00 +02:00
jailscreen.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
jailscreen.hpp Properly center jail progress widget, fix a bug with it not disappearing if the console is open 2015-02-07 18:38:41 +01:00
journalbooks.cpp Silence -Wreorder warnings, and remove -Wno-reorder. 2015-05-21 22:46:44 -05:00
journalbooks.hpp Rewrite journal GUI topic list to use MWList 2014-06-03 16:04:18 +02:00
journalviewmodel.cpp Silence -Wreorder warnings, and remove -Wno-reorder. 2015-05-21 22:46:44 -05:00
journalviewmodel.hpp Grey out completed quests in journal quests list 2015-02-13 16:51:34 +01:00
journalwindow.cpp Fix journal page navigation bug introduced by 7dd09dd637 (Fixes #2899) 2015-08-30 17:38:21 +02:00
journalwindow.hpp Reduce includes in MWGui 2015-01-10 03:56:06 +01:00
layout.cpp Move OEngine::Gui::Layout to MWGui 2015-05-01 02:22:51 +02:00
layout.hpp Move OEngine::Gui::Layout to MWGui 2015-05-01 02:22:51 +02:00
levelupdialog.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
levelupdialog.hpp Do not attach coin widgets to a box 2014-09-03 03:03:03 +02:00
loadingscreen.cpp Fix the frameNumber not being incremented in certain frames 2015-11-06 23:14:27 +01:00
loadingscreen.hpp Small delay before the loading screen shows 2015-10-23 16:50:08 +02:00
mainmenu.cpp Include cleanup 2015-07-18 20:36:28 +02:00
mainmenu.hpp Move OpenMW version information to a textfile instead of compiling it in 2015-07-18 03:09:04 +02:00
mapwindow.cpp Flip the origin of global map texture 2015-11-15 21:36:41 +01:00
mapwindow.hpp Fix cell names on world map not always being translated (Fixes #2832) 2015-08-13 17:08:21 +02:00
merchantrepair.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
merchantrepair.hpp Reduce includes in MWGui 2015-01-10 03:56:06 +01:00
messagebox.cpp Fix -Wunused-private-field clang warnings 2015-06-04 20:42:05 +02:00
messagebox.hpp Fix -Wunused-private-field clang warnings 2015-06-04 20:42:05 +02:00
mode.hpp Add training progress bar, implement jail screen, tweak wait dialog (Fixes #1714) 2015-02-07 04:05:28 +01:00
pickpocketitemmodel.cpp Include cleanup 2015-07-18 20:36:28 +02:00
pickpocketitemmodel.hpp Open inventory when activating an unconscious actor (Fixes #1848) 2014-08-26 03:06:23 +02:00
quickkeysmenu.cpp Make the Equip script function "use" items (drink potion, use alchemy, etc) 2015-09-07 22:09:08 +02:00
quickkeysmenu.hpp Allow binding Hand To Hand in quick keys menu (Fixes #2024) 2015-03-12 02:23:46 +01:00
race.cpp Port CharacterPreview 2015-05-20 02:18:20 +02:00
race.hpp Port CharacterPreview 2015-05-20 02:18:20 +02:00
recharge.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
recharge.hpp Reduce includes in MWGui 2015-01-10 03:56:06 +01:00
referenceinterface.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
referenceinterface.hpp Fix console reference label not resetting when loading save 2014-06-13 02:26:52 +02:00
repair.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
repair.hpp Refactor item icon code into ItemWidget (Fixes #1391) 2014-06-05 22:13:18 +02:00
review.cpp One more tooltip fix. This one in the review dialog with Socucius Ergalla. 2015-11-22 00:50:36 -05:00
review.hpp Reduce includes in MWGui 2015-01-10 03:56:06 +01:00
savegamedialog.cpp Improve some error messages 2015-08-21 00:31:43 +02:00
savegamedialog.hpp Restore savegame screenshot display 2015-05-28 02:34:38 +02:00
screenfader.cpp Use AdditiveLayer for the hit fader 2015-11-07 18:05:16 +01:00
screenfader.hpp Use AdditiveLayer for the hit fader 2015-11-07 18:05:16 +01:00
scrollwindow.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
scrollwindow.hpp Fix -Woverloaded-virtual clang warnings 2015-06-04 20:31:28 +02:00
settingswindow.cpp Remove old FPS setting code 2015-11-07 00:13:13 +01:00
settingswindow.hpp Remove old FPS setting code 2015-11-07 00:13:13 +01:00
sortfilteritemmodel.cpp Remove an unused function 2015-08-16 17:40:20 +02:00
sortfilteritemmodel.hpp Remove an unused function 2015-08-16 17:40:20 +02:00
soulgemdialog.cpp Reduce includes in MWGui 2015-01-10 03:56:06 +01:00
soulgemdialog.hpp Added soulgem dialog; made interactive message boxes not close the previous UI 2013-03-30 15:51:07 +01:00
spellbuyingwindow.cpp Optimize MWMechanics::Spells 2015-11-27 01:07:15 +01:00
spellbuyingwindow.hpp Esc button exits all non-modal GUI windows 2014-05-26 23:13:37 -04:00
spellcreationdialog.cpp Optimize MWMechanics::Spells 2015-11-27 01:07:15 +01:00
spellcreationdialog.hpp Reduce includes in MWGui 2015-01-10 03:56:06 +01:00
spellicons.cpp durations in tooltips : use "show effect duration" setting 2015-09-16 22:42:54 +02:00
spellicons.hpp Silence -Wreorder warnings. 2015-04-28 18:48:02 -05:00
spellmodel.cpp Optimize MWMechanics::Spells 2015-11-27 01:07:15 +01:00
spellmodel.hpp Silence -Wreorder warnings. 2015-04-28 18:48:02 -05:00
spellview.cpp Merge branch 'master' of https://github.com/OpenMW/openmw into osg 2015-06-07 15:23:54 +02:00
spellview.hpp Merge branch 'master' of https://github.com/OpenMW/openmw into osg 2015-06-07 15:23:54 +02:00
spellwindow.cpp Make the Equip script function "use" items (drink potion, use alchemy, etc) 2015-09-07 22:09:08 +02:00
spellwindow.hpp provide incremental update of SpellWindow (Fixes #2411) 2015-04-03 17:59:13 +13:00
statswindow.cpp Correct tooltip for Magicka in stats window. 2015-11-20 14:57:42 -05:00
statswindow.hpp Reduce includes in MWGui 2015-01-10 03:56:06 +01:00
textinput.cpp Reduce MyGUI includes 2015-01-10 02:50:43 +01:00
textinput.hpp Reduce MyGUI includes 2015-01-10 02:50:43 +01:00
timeadvancer.cpp Add training progress bar, implement jail screen, tweak wait dialog (Fixes #1714) 2015-02-07 04:05:28 +01:00
timeadvancer.hpp Add training progress bar, implement jail screen, tweak wait dialog (Fixes #1714) 2015-02-07 04:05:28 +01:00
tooltips.cpp Fix Show Owned option affecting tooltips that are not objects (Fixes #3036) 2015-11-26 18:23:39 +01:00
tooltips.hpp Fix Show Owned option affecting tooltips that are not objects (Fixes #3036) 2015-11-26 18:23:39 +01:00
tradeitemmodel.cpp Stolen item tracking overhaul part 2 (Fixes #2338) 2015-02-06 01:27:16 +01:00
tradeitemmodel.hpp Revert "Transfer item ownership to the buyer if item wasn't stolen" 2014-09-28 12:18:46 +02:00
tradewindow.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
tradewindow.hpp Reduce MyGUI includes 2015-01-10 02:50:43 +01:00
trainingwindow.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
trainingwindow.hpp Add training progress bar, implement jail screen, tweak wait dialog (Fixes #1714) 2015-02-07 04:05:28 +01:00
travelwindow.cpp extracted MWMechanics::getPlayer() 2015-08-21 21:12:39 +12:00
travelwindow.hpp Reduce includes 2015-01-10 01:00:52 +01:00
videowidget.cpp Catch exception for not found videos 2015-05-15 00:23:31 +02:00
videowidget.hpp Port VideoWidget 2015-05-01 03:03:44 +02:00
waitdialog.cpp Update sleep interruption formula according to wiki, thanks Hrnchamd 2015-09-07 22:31:11 +02:00
waitdialog.hpp Remove unnecessary dependency on MWScrollBar 2015-10-24 16:04:08 +02:00
widgets.cpp Fix tab indentations in apps/ and components/ 2015-09-16 20:45:37 +02:00
widgets.hpp Silence -Wreorder warnings. 2015-04-28 18:48:02 -05:00
windowbase.cpp WindowBase::center use the layer size instead of render window size 2015-11-08 18:30:21 +01:00
windowbase.hpp Remove an unneeded virtual 2015-07-15 19:10:09 +02:00
windowmanagerimp.cpp Restore the previous key focus widget after playing video 2015-11-12 19:03:24 +01:00
windowmanagerimp.hpp Remove old FPS setting code 2015-11-07 00:13:13 +01:00
windowpinnablebase.cpp Use mouse pressed event for pin button instead of mouse click 2015-01-31 22:40:41 +01:00
windowpinnablebase.hpp Use mouse pressed event for pin button instead of mouse click 2015-01-31 22:40:41 +01:00