Jump to content

GiantLollipop

Veteran Driver IV
 TruckersMP Profile
  • Posts

    2
  • Joined

  • Last visited

About GiantLollipop

Recent Profile Visitors

1033 profile views

GiantLollipop's Achievements

  • First Post
  • Dedicated
  • One Month Later
  • One Year On

Recent Badges

5

Reputation

  1. I'm having the same issue, seems to happen right as ghost mode ends. Connecting to sim2 works fine
  2. Please select the beta version "NONE - Opt out of all beta programs" as described in this article: https://truckersmp.com/kb/26
  3. Follow the instructions in this article: https://truckersmp.com/kb/26
  4. Please verify you don't have any steering wheel accessories, as this leads to game client fatal errors according to the release notes.
  5. Suggestion Name Realtime Map - Performance Improvements Suggestion Description As a frequent user of the map, I have noticed the sluggish performance of the map. I made some adjustments to the map that improve the FPS by 2 to 3 times (see images below). The code used for this can be found in the spoiler below and can easily replace the old code. Technical Details Tile has been replaced, because the memory consumption of this function was really high for two reasons: Methods of Tile didn't use the prototype property Each call to Tile.draw created a new Image object The new Tile caches the Image object after the first call to Tile.draw and reduces the stress on the garbage collector, leading to more FPS. The second improvement is rather small. The start() function has been replaced and uses requestAnimationFrame instead of setInterval for the following improvements: requestAnimationFrame intelligently determines the appropriate framerate based on the screen’s refresh rate and the device’s capabilities requestAnimationFrame does not fire when the user isn't viewing the map (e.g. on another tab) and reduces background resource usage requestAnimationFrame increases animation smoothness Images I am using a 75Hz monitor for this test and tested it in Google Chrome on Windows 10 as well as my Samsung phone (images not included). Without modification: https://i.imgur.com/0FUxtjh.png With modification: https://i.imgur.com/MHlJ2Vj.png Code
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.