Giter Club home page Giter Club logo

Comments (4)

viktor-ferenczi avatar viktor-ferenczi commented on August 16, 2024 1

Problem is that the hash of method body IL code somehow differs from what's on Windows. This is because the hash calculation is not portable, it can differ between .NET platforms. It triggers the code detection change, which disables the plugin. The reason for this mechanism is to prevent heavy crashes after game updates, instead it just waits disabled until I release an update.

It would most likely work for you if the EnsureCode.Verify() call and the code block using its results would be commented out.

I make such a custom build and we'll see.

from performance-improvements.

viktor-ferenczi avatar viktor-ferenczi commented on August 16, 2024 1

In the upcoming 1.9.1 release you will be able to disable the code verification in the plugin configuration file:

<DetectCodeChanges>false</DetectCodeChanges>

This setting is not visible on the in-game configuration dialog, nor in Torch, but still effective on all target platforms. (I don't want players to mess with it, unless they absolutely have to.)

It should be: %AppData%\SpaceEngineers\PerformanceImprovements.cfg

Full config file, just in case you cannot even create one:

<?xml version="1.0" encoding="utf-8"?>
<PluginConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Enabled>true</Enabled>
  <DetectCodeChanges>false</DetectCodeChanges>
  <FixGridMerge>true</FixGridMerge>
  <FixGridPaste>true</FixGridPaste>
  <FixP2PUpdateStats>true</FixP2PUpdateStats>
  <FixGarbageCollection>true</FixGarbageCollection>
  <FixGridGroups>true</FixGridGroups>
  <CacheMods>true</CacheMods>
  <CacheScripts>true</CacheScripts>
  <DisableModApiStatistics>true</DisableModApiStatistics>
  <FixSafeZone>true</FixSafeZone>
  <FixTargeting>true</FixTargeting>
  <FixWindTurbine>true</FixWindTurbine>
  <FixVoxel>true</FixVoxel>
  <FixPhysics>true</FixPhysics>
  <FixEntity>true</FixEntity>
  <FixCharacter>true</FixCharacter>
  <FixMemory>true</FixMemory>
</PluginConfig>

from performance-improvements.

viktor-ferenczi avatar viktor-ferenczi commented on August 16, 2024 1

Plugin Loader should update this plugin to 1.9.1 now. Please let me know whether changing the above config option in the XML fixes your issue.

from performance-improvements.

EngineOfDarkness avatar EngineOfDarkness commented on August 16, 2024

Seems to load fine, all I had to do was to edit the existing Config PerformanceImprovements.cfg and add <DetectCodeChanges>false</DetectCodeChanges> as you mentioned since it hasn't automatically added the default value (true).

It did alleviate the problem somewhat (so it is less worse), but my sim speed still tanks, mod testing it is.

And hoping it is just a mod and not some linux specific issue because this is just way to weird the game behaves right now (e.g. if Shift + F10 shows sim speed at ~100% (~16ms) just switching to the second page via Shift + F10 again tanks it to 150%(~25ms) for some reason - beats me why)

Thanks for the quick fix anyways - I'll close the issue since it works now.

Edit: If anyone in the future stumbles upon my text above regarding the sim speed issue - could be a vanilla or Proton Issue (happens, albeit to a lesser extend, with vanilla as well): ValveSoftware/Proton#1792 (comment)

Edit 2: For anyone else - reproduced it in vanilla on my linux system reliably ValveSoftware/Proton#1792 (comment)

from performance-improvements.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.