Commit graph

16 commits

Author SHA1 Message Date
FlaggAC
7f1b58ab24
Change static readonly fields to const fields. (#4211)
This will at least somewhat improve performance, as confirmed through microbenchmark testing.

const fields are replaced with literal values in the Assembly's IL code, while static readonly fields may be optimized by the JIT, and is not guaranteed to happen. const fields may also lend themselves to stronger optimizations at runtime.
2024-08-24 14:32:35 +00:00
Mag-nus
7590f7bea7
Fix IsCreatureNameInWorldDatabase (#3752)
We use a case incensitive collation, utf8_general_ci, so we do not need to specify StringComparison when querying the database.

Previously, this LINQ expression was done client side in the older EF versions.
2021-12-04 00:39:55 -05:00
gmriggs
c90baf8a80
update recipes to use mutation scripts (#3593)
* update recipes to use mutation scripts

* additional refactoring

* .

* update proficiency code

* foolproof salvage code is still needed until recipes are added

* add comment

* add rare foolproof

* update sandstone

* adding sandstone mutation

* update RecipeManager_New recipes for foolproof salvage

* add RecipeManager_New caching

* finish removing ClearRecipe()

* update comments

* update defense imbues to include shields, as per base recipe

* improved UpdateObject server sync
2021-07-11 20:14:21 -04:00
Mag-nus
7a0404c0a3
Improve World DB Startup Caching (#3587)
This is significantly faster than what is currently in master, and just slightly slower than PR #3582

It is now a single threaded operation, just like #3582 but instead of stitching the objects together manually, it lets EF stitch the objects together.

EF Tracking is required for the stitching to work.

This is the recommended pattern for these types of actions when dealing with EF.

I think similar improvements can be made to startup player caching
2021-06-12 14:15:42 -05:00
gmriggs
47bb657869
cirand cleanup (#3550) 2021-05-22 01:57:50 -04:00
gmriggs
82062d99b6
update wielded treasure roll to be closer to retail (#3401)
* update wielded treasure roll to be closer to retail

* .

* rename command to show-wielded-treasure
2020-12-31 17:37:08 -05:00
Mag-nus
43c9300b10
.NET Entity Framework Core 3.1 support (attempt #2) (#3356)
* packages updated, fix compiler errors/warnings

* scaffold

* fix ShardDatabaseOfflineTools

* WorldDatabase fix performance

* ShardDatabase fix GetCharacters

* move comment

stuff

* extend UseMySQL statements

* fix character creation linq parsing

* fix exception

* fix references
2020-12-07 20:59:40 -06:00
gmriggs
b1f540f6de
add pre-normalization to treasure material tables (#3360) 2020-11-22 02:57:05 -05:00
gmriggs
b5e5719ce8
improving /addenc, adding /removeenc (#3324)
* improving /addenc, adding /removeenc

* removing test code
2020-10-25 14:22:41 -04:00
gmriggs
7c83b8ccae
minor performance improvements to material / color caches (#3223)
* minor performance improvements to AssignMagic()

* minor performance improvements to material / color caches

* adding comment

* updating to latest master branch

* updating to latest master branch
2020-10-20 12:07:18 -04:00
gmriggs
608ba3c867
fix GetRandomWeeniesOfType rng bug (#3182) 2020-08-29 01:48:17 -04:00
Ty Conner
d0e7209ca0
Check player names against creature names in world db (#2888)
* Check player names against creature names in world db

- Disable creating players with names of creatures in world
- Adjust other checks

* Update WorldDatabaseWithEntityCache.cs
2020-04-11 12:55:45 -04:00
gmriggs
5ed73ddf3a
adding null check to GetScrollWeenie (#2846) 2020-03-23 14:37:30 -04:00
gmriggs
54a759a791
add support for 'crafting chance of success dialog' player option to regular recipes (#2811)
* add support for 'crafting chance of success dialog' player option to regular recipes

* adding logic for drid

* broadcasting icon underlay changes for all recipe mods

* update comment

* updates

* adding server option for 'craft_exact_msg'

* .

* retail server netsend all property updates in recipe mod, including internal

* adding /clearcache recipe

* .

* using pre-existing method

* updating AddSpell

* updating AddSpell imbues - already handled in recipe mods

* updating logic for sendMsg

* further updates

* exclude non-armature imbues on trinkets

* adding shard fix for existing trinkets with invalid imbues

* adding newline

* updating AuditItemSpells for new scenario

* fixing /ciloot tier

* update hotspot cycle variance to use standard formula
2020-03-18 03:11:08 -04:00
gmriggs
e8c9300e86
fixing no scrolls dropping when world precaching is enabled (#2793) 2020-03-08 22:15:59 -04:00
Mag-nus
c1d480a01a
Step 2. Convert WorldDatabase Weenie Cache from the ACE.Database model to the new ACE.Entity model (#2702)
* Step 1. Add new adapter classes and models

All classes and objects added are in new namespaces.

This add has 0 interraction on existing ACE code.

This sets the groundwork for Step 2. Moving World DB caching to the new models

* first part of the world entity usage

* almost there

* final part

* update WeenieExtensions

* fix

* merge fixes and improvements

* More code ported from Step 3

* Update WorldDatabaseWithEntityCache.cs

* GetCachedCookbooks(recpieId) -> GetCookbooksByRecipeId(recpieId)

* build fix

* changelog
2020-03-02 08:03:50 -06:00