Skwizzy / SPT-LootingBots

AI Looting mod for Singleplayer Tarkov
https://hub.sp-tarkov.com/files/file/1096-looting-bots/#overview
30 stars 10 forks source link

RagFair queries too demanding for lower end PCs. Default to Handbook prices #13

Closed Skwizzy closed 1 year ago

Skwizzy commented 1 year ago

A user has reported that the /client/ragfair/itemMarketPrice query is causing noticeable spikes in performance. A suggestion was made to use the Handbook values instead of the RagFair service which should be less demanding. An option to use rag fair prices for item comparison should be added to the mod settings

Skwizzy commented 1 year ago

Testing the fix in the 3.5.3 beta branch. Changed to use handbook values by default for weapon appraisal. We will now only make one query to get the Handbook prices per application session. This query will occur when the first bot initiates its looting cycle

Skwizzy commented 1 year ago

I have further refined this to use an existing instance of the Handbook singleton that gets created upon client start. No additional query needed for the default appraisal option! Change 72096bb

Skwizzy commented 1 year ago

Further improved ragfair option performance. Client will now only make one query when the game is first launched. Accessing these prices in raid is now as fast, if not faster than using the handbook