Giter VIP home page Giter VIP logo

Comments (27)

Arthur-D avatar Arthur-D commented on August 24, 2024

With the new camera, I am not sure if this is an issue any longer.

from stk-code.

auriamg avatar auriamg commented on August 24, 2024

It's much better with the new camera, though unfortunately in one occasion I reproduced stutter

from stk-code.

hiker avatar hiker commented on August 24, 2024

Same procedure as last release? Same procedure as every release ... postponed :(

from stk-code.

qwertychouskie avatar qwertychouskie commented on August 24, 2024

I notice this problem very often with the add-on track "Lava fields" even with good FPS (no advanced pipeline, all other settings turned to max).

from stk-code.

auriamg avatar auriamg commented on August 24, 2024

Should have improved a lot in latest git. We can reopen if we ever reproduce it again...

from stk-code.

qwertychouskie avatar qwertychouskie commented on August 24, 2024

Umm... Still very reproducible for me (as in I can't not reproduce it).

from stk-code.

qwertychouskie avatar qwertychouskie commented on August 24, 2024

After having lived with this issue a while, I noticed that it seems like it is related to how hot my CPU/GPU gets (Intel HD 3000, so the GPU is on the CPU chip).

from stk-code.

SuicSoft avatar SuicSoft commented on August 24, 2024

@qwertychouskie How much is your FPS (since HD 3000 is the minimum) ? And if your GPU is hot it would throttle or display artifacts (if it is old).

On my laptop with Radeon HD 7640g since upgrading to Ubuntu 16.04 (with those terrible drivers that lag) the kart is moving back and forward slightly (game is still playable , FPS is around 25). I am using 0.9.2 with advanced pipeline and a lot of other effects enabled

from stk-code.

qwertychouskie avatar qwertychouskie commented on August 24, 2024

Low FPS do not seem to be the cause of the issue, it is still noticeable with the advanced pipeline turned off, even on the low-resource "Lava Fields" race.

from stk-code.

qwertychouskie avatar qwertychouskie commented on August 24, 2024

I am wondering if systems that use Mesa specifically are affected by this issue.

Should have improved a lot in latest git. We can reopen if we ever reproduce it again...

@auriamg Can this be reopened, since it is still reproducible?

from stk-code.

SuicSoft avatar SuicSoft commented on August 24, 2024

@qwertychouskie I am using Mesa git from padoka PPA (recommened instead of Oibaf for HD 7000 and above , don't know about Intel / NVIDIA).

from stk-code.

qwertychouskie avatar qwertychouskie commented on August 24, 2024

Hmm, the OpenGL 2.1 pipeline does not seem to have the issue, definitely something related to the graphics drivers...

from stk-code.

qwertychouskie avatar qwertychouskie commented on August 24, 2024

I take that back, it can happen in the OpenGL 2.1 pipeline, but it requires very high CPU use (in my case, the latest STK auto-compiling) to trigger it.

from stk-code.

auriamg avatar auriamg commented on August 24, 2024

@qwertychouskie you are probably getting an uneven framerate. getting the game totally smooth despite an erratic framerate will be hard...

from stk-code.

SuicSoft avatar SuicSoft commented on August 24, 2024

@auriamg I have about 25 FPS which looks smooth

from stk-code.

qwertychouskie avatar qwertychouskie commented on August 24, 2024

@auriamg Then it is one of the most uneven framerates in existence ;)
https://jacobspctuneup.tk/bug.webm

from stk-code.

SuicSoft avatar SuicSoft commented on August 24, 2024

@qwertychouskie Mine is smooth but it moves back and forward slightly

from stk-code.

qwertychouskie avatar qwertychouskie commented on August 24, 2024

I recorded a replay while it was doing it, and later played the replay when it was not doing it. The replay was smooth, which indicates the the kart itself is not moving, but the problem lies with the camera.

from stk-code.

SuicSoft avatar SuicSoft commented on August 24, 2024

@qwertychouskie How many FPS did you record the replay at ?

from stk-code.

qwertychouskie avatar qwertychouskie commented on August 24, 2024

I ment a ghost replay.

from stk-code.

SuicSoft avatar SuicSoft commented on August 24, 2024

@qwertychouskie Mine also looks like that video sometimes but doesn't lag

from stk-code.

Arthur-D avatar Arthur-D commented on August 24, 2024

In my opinion, this has not been fixed to a satisfactory degree. See https://youtu.be/XFKwCTh8mAg for an example. I used OpenGL capture which should not introduce additional overhead, but set it to limit framerate to 30 FPS.

As can be seen in the video, there's quite a lot of shaking back and forth going on, even when framerate is at a reasonably steady 28-31 FPS. Even when not doing OpenGL capture and thus not limiting framerate, it still shakes noticeably (but not as much). That would be around 50 FPS in the same track with the same settings.

from stk-code.

Arthur-D avatar Arthur-D commented on August 24, 2024

Actually, looking at the video again, maybe it's not the camera that's shaking, but the kart itself? Kinda looks that way, but it's a bit hard to tell what causes what. In any case it's an issue worth looking into in my opinion, however maybe it should be put in a separate ticket. Any thoughts?

from stk-code.

qwertychouskie avatar qwertychouskie commented on August 24, 2024

Looking at that video at a really low speed, the distance between the camera and kart is definitively changing, though it is hard to tell whether the kart is moving back and forth or not.

from stk-code.

Benau avatar Benau commented on August 24, 2024

Maybe it can be fixed by "smoothing" the delta t in smooth camera too

in void CameraNormal::smoothMoveCamera(float dt) line 108, change to something like this:

    float f = 5.0f;
    if ((current_speed > 5 ) || (current_speed < 0 ))
    {
       f = current_speed >0 ?         current_speed/3 + 1.0f
                            : -1.5f * current_speed   + 2.0f;
    }
    static float smooth_dt = 0.0f;
    smooth_dt = 0.3f * dt + 0.7f * smooth_dt;
    current_position += (wanted_position - current_position) * (smooth_dt *f);

This quick hack only with 1 camera (singleplayer), if work we can fix this properly.

from stk-code.

Arthur-D avatar Arthur-D commented on August 24, 2024

I believe this patch helped with the worst spikes, which were obviously the most important ones to fix - the micro-stuttering might be very framerate-dependent. But it certainly helped with the jerkiest movements, thanks. :)

I hope this can be merged into the game.

from stk-code.

Benau avatar Benau commented on August 24, 2024

Commited fix

Please reopen if this issue should still occur.

from stk-code.

Related Issues (20)

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.