Game Slows Down When Character Scaled Down?

Started by SilverSpook, Fri 12/06/2015 22:20:44

Previous topic - Next topic

SilverSpook

I have an area where the character scales from max scaling level of 50 to min scaling level of 20, with continuous scaling.  When the character goes about halfway up the screen, the game suddenly starts to drag at about 1/2 normal speed.  It's basically like slow motion?  Is this a problem caused by scaling the character too small, or is there something that can be done to help with the slow down?  It seems to be just when the character scales down very small.

Snarky

In what way does the game "slow down"? What is it that is going slower?

SilverSpook

It's like everything is literally going in slow-motion.  So if it takes the guy 2 seconds to walk across the street, it suddenly takes him 4 seconds.  The frame rate also appears to drop.  This just suddenly occurs when you go above about halfway up the screen.  So it isn't a progressive slowdown from bottom to top; the game is running normally, then suddenly jumps into slow motion. 

Khris

Character scaling also affects the character's speed (as it should), so it's supposed to go slower.

In game_start, call Debug(4, 1); to turn on the FPS display. Then check again if the game actually slows down.

SilverSpook

Hm, yeah it does appear to have to do with the character speed scaling.  Weird how the game appears to slow down... Perhaps it's due to the scrolling of the camera becoming choppy when the player's movement speed drops?

Crimson Wizard

Try disabling "AdjustSpeedWithScaling" character property (if its on).

SilverSpook

Yeah when I turned that off the slow down issue resolved.  The character in that scene moves way too fast though without adjustspeedwithscaling, because the view is more aerial, pulled back from the character.

Khris

If the character's speed goes down, viewport scrolling can get pretty choppy. You might want to look into the SmoothScrolling module.


SMF spam blocked by CleanTalk