0 of 0

File information

Last updated

Original upload

Created by

Alex11235

Uploaded by

Alex11235

Virus scan

Safe to use

Tags for this mod

72 comments

  1. ronahal
    ronahal
    • supporter
    • 3 kudos
    Why does this mod boost my FPS by 30 in game? it doesn't make any sense but my game performs so much smoother!!
  2. whytide
    whytide
    • supporter
    • 1 kudos
    If you go to KingdomComeDeliverance\Mods\CutsceneFPSFixV2\Data, open Cutscene Fix.pak in WinRAR or 7zip or whatever, then go to Scripts\Entities, and open FPSFix.lua in your notepad of choice, you can do Ctrl+F and search for whatever framerate the mod's locked to and change it to your screen's refresh rate.
  3. sunshinybro
    sunshinybro
    • premium
    • 0 kudos
    Careful for those who want to play at higher frame rates. This was locking my FPS throughout the ENTIRE game, not just cutscenes, at 144fps. Maybe there's a fix, but I just removed it and now it feels SOOO much better. I had thought it was just a really demanding game even for a 4090, but when I opened my console I noticed there was a command being spammed to set max fps to 144. 
    1. OutletFinds
      OutletFinds
      • supporter
      • 3 kudos
      If you think that's bad, this little s#*! of a mod was capping me to 60
    2. recsynthesis
      recsynthesis
      • supporter
      • 0 kudos
      I got this mod through a collection and was wondering what that was in my consol...are you kidding me?
    3. Spitballzz
      Spitballzz
      • premium
      • 1 kudos
      It's pretty obvious. It's literally just spamming sys_maxfps in the console, so basically it overrides the 30 fps lock in cutscenes. If you don't want it to spam so much just change the lua script to spam it once per second for example. Right now it's spamming however many FPS are, so if it's 120 fps then it's spamming 120 times per second.

      I added timer variables to the script so it accumulates 1 second between executions. Just change the sys_maxfps to the value you want and that's it. You're good to go.

      Just open the .pak with 7zip (for example) navigate to Scripts > Entities > FPSFix.lua and replace it the below script so it only executes the command once per second. You can always change how long of an interval you want as well of course.

      ---
      --- The FPSFix contains its own lifecycle, this way you can hook into the update method and call your logic every frame
      ---
      FPSFix = {
          Client = {},
          Server = {},
          Properties = {
              bSaved_by_game = 0,
              -- Warning:
              -- should the entity saved within a savegame?
              -- If a user deletes your mod and uses the last save game, the engine will quit and shows an error, that this entity is missing
              -- This can be solved by simply not saving the entity within the savestate of the game
              Saved_by_game = 0,
              bSerialize = 0
          },
          States = {},
          
          -- Timer variables for throttling the command execution.
          lastUpdateTime = 0,       -- Accumulates time between command executions.
          updateInterval = 1.0      -- Interval in seconds between executions (once per second).
      }

      -- This is called every frame given the entity has been spawned.
      function FPSFix.Client:OnUpdate(frameTime)
          -- Accumulate elapsed time.
          self.lastUpdateTime = self.lastUpdateTime + frameTime

          -- Execute the command if the interval has passed.
          if self.lastUpdateTime >= self.updateInterval then
              System.ExecuteCommand('sys_MaxFPS 116')
              self.lastUpdateTime = 0  -- Reset the timer.
          end
      end

      -- Called once; use this for initializing stuff.
      function FPSFix:OnReset()
          -- Reset the timer.
          self.lastUpdateTime = 0
          self:Activate(1)
      end

      -- Called once on the server side for initialization.
      function FPSFix.Server:OnInit()
          System.LogAlways("FPSFix OnInit")

          if (not self.bInitialized) then
              self:OnReset()
              self.bInitialized = 1
          end
      end

      -- Called once on the client side for initialization.
      function FPSFix.Client:OnInit()
          System.LogAlways("FPSFix OnInit")

          if (not self.bInitialized) then
              self:OnReset()
              self.bInitialized = 1
          end
      end

      -- Called when the player saves or updates a save state.
      function FPSFix:OnPropertyChange()
          self:OnReset()
          System.LogAlways("FPSFix opc")
      end

      function FPSFix:OnAction(action, activation, value)
          -- You can handle actions here if needed.
      end

      FPSFix.Server.TurnedOn = {
          OnBeginState = function(self)
              BroadcastEvent(self, "TurnOn")
          end,
          OnUpdate = function(self, dt)
              -- Do something every frame if needed.
          end,
          OnEndState = function(self)
              -- Cleanup when turning off, if necessary.
          end,
      }

      FPSFix.Server.TurnedOff = {
          OnBeginState = function(self)
              BroadcastEvent(self, "TurnOff")
          end,
          OnEndState = function(self)
              -- Cleanup when turning off, if necessary.
          end,
      }

      FPSFix.FlowEvents = {
          Inputs = {
              TurnOn = { FPSFix.Event_TurnOn, "bool" },
              TurnOff = { FPSFix.Event_TurnOff, "bool" },
          },
          Outputs = {
              TurnOn = "bool",
              TurnOff = "bool",
          },
      }
    4. iitzmichael
      iitzmichael
      • supporter
      • 4 kudos
      thanks bro 
    5. Shadowe
      Shadowe
      • premium
      • 0 kudos
      Stop telling people to use 7zip. 7zip can't edit pak files. You need winrar or something else.
    6. Mrblack08
      Mrblack08
      • member
      • 1 kudos
      So I used WinRar to extract the PAK file and edited the file as mentioned. But how do I repack it back into a single file as it was? 
    7. Phobi666
      Phobi666
      • premium
      • 0 kudos
      This is not true. You can even edit files within packages without unpacking them first. You don't need Winrar for anything. Just right-click on the pak and select 7zip -> open archive
    8. M4DMAXX27
      M4DMAXX27
      • member
      • 1 kudos
      Lol made my day

      Saying they should stop telling people to use a specific program to edit a file, because it can't edit said file directly, without need of repack.
      ...while the alternative program they're mentioning also can't direct edit the said file.

      WinRAR can, in some case, directly edit PAK Files, without the need to repack them, like you need it in 7Zip.
      But what I have read, it can't edit directly the KCD Files, because they are, compressed and/or encrypted.
      At least that is what I had read about it. I used WinRAR in the past, but not anymore since years.
      And, if this is right, the only advantage of WinRAR, is not given.
  4. kalapsia
    kalapsia
    • member
    • 0 kudos
    like another comment says it caps the cape at whichever FPS file you choose. its also annoying as hell if you use the cheat console mode. i'll just stick to the 30 fps at this point
  5. MK112
    MK112
    • member
    • 1 kudos
    The mod works fine, however it doesn't seem to stay activated when starting a DLC. I just had it with "A Woman's Lot":

    Playing main game --> Mod works just fine
    Starting DLC --> Mod isn't working anymore
    Saving and Exit inside the DLC + Restarting game to load the latest save --> Mod is working fine
    Ending the DLC and getting back to main game --> Mod isn't working anymore

    Any idea how this could be fixed, like said it seems to happen whenever you are transitioning into the DLC or after getting back to the main game.
    Great mod by the way! 

    Thanks! :)
  6. batievskiy
    batievskiy
    • member
    • 1 kudos
    After installing this mod my fps in game become ~50, changing settings or resolution do nothing. LOW preset = 50 fps, Ultra preset = 50 fps. 2K resolution = 50 fps, 720p = 50 fps. Deleting this mod did nothing. Can't bring back normal fps like in was before.
  7. noobsaibot2255
    noobsaibot2255
    • premium
    • 6 kudos
    easy port to the second game?
    1. Alex11235
      Alex11235
      • premium
      • 3 kudos
      I have not purchased KCD2 yet, is this still happening in the new game?
    2. mozgnameste
      mozgnameste
      • member
      • 0 kudos
      Yes
  8. NewYears1978
    NewYears1978
    • supporter
    • 14 kudos
    Installing this locks my entire game to the picked FPS. So I was getting 165 FPS with the 60 fps mod I am locked at 60 FPS. Is that intended?
  9. sakuya47
    sakuya47
    • member
    • 0 kudos
    没什么效果,过场CG动画帧数只提高到45FPS左右,而且让快速移动变得很缓慢。
  10. rodrigobc
    rodrigobc
    • member
    • 1 kudos
    Now we only need the grass to move at framerate above 30.