Giter Site home page Giter Site logo

Comments (9)

youurayy avatar youurayy commented on July 20, 2024 4

Alternate name for this issue: "Halving input latency after 17 years of Quake 3."

from ioq3.

zturtleman avatar zturtleman commented on July 20, 2024 3

Fixed in ead5478. Thanks.

from ioq3.

ensiform avatar ensiform commented on July 20, 2024

I believe in frame is called in main() after the com frame function so it happens after com frame takes place all together.

from ioq3.

wareya avatar wareya commented on July 20, 2024

Yes, it goes like thus:

while( 1 )
{
    IN_Frame( );
    Com_Frame( );
}

And Com_Frame runs the framelimiter before thinking, which puts things in the wrong order.

from ioq3.

ensiform avatar ensiform commented on July 20, 2024

That's really no different from how quake3.exe does it though.

from ioq3.

wareya avatar wareya commented on July 20, 2024

That's right, vanilla quake 3 also has this problem.

from ioq3.

ensiform avatar ensiform commented on July 20, 2024

Is there any sort of fixes in cnq3 ?

from ioq3.

wareya avatar wareya commented on July 20, 2024

cnq3 somehow fixes mouse button inputs without fixing mouse movement or keyboard press inputs.

from ioq3.

youurayy avatar youurayy commented on July 20, 2024

Blunt test code here: youurayy@6908038

It's just IN_Frame() called again within Com_Frame() right after the limiter code, with a flag added to prevent it from triggering a second vid_restart or possibly a vid_restart in the wrong place. Only tested with bots so far.

Also tested at com_maxfps=1 and the lag is not there anymore, well played sir @wareya, well played.

I'm gaming at 60Hz with GTX 980, and to me the improvement is incredible, there's just no way back. To me, the mouse movement now seems "glued" to the mouse, it's like a different game.

I'm gaming with:

seta com_maxfps "60"
seta r_finish "1"
seta in_mouse "1"
seta cl_mouseAccel "2"
seta sensitivity "1.500000"
seta cl_mouseAccelOffset "5"
seta cl_mouseAccelStyle "1"
seta m_filter "0"
seta r_mode "-1"
seta r_fullscreen "1"
seta r_customwidth "1920"
seta r_customheight "1080"
seta com_hunkMegs "1024"

from ioq3.

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.