Deprecated: Function create_function() is deprecated in /home/customer/www/neverforum.com/public_html/fmpbo/include/parser.php on line 811

Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/neverforum.com/public_html/fmpbo/include/parser.php on line 814

1 (edited by p2013125 2020-12-19 15:18:45)

Topic: I found out how did protonspring slow down neverball.

While working on ForgeBall, I also researched Neverball's source code, and I found out if you change the value of st_timer in the main game loop function, you can control the game's speed. That might be the way protonspring did it.
The position of the st_timer is in line 603 of ball/main.c in the ForgeBall sourcecode.
(EDIT: this changes the game's tick speed, thus making the game run slower.)
596  while (loop())
597   {
598
599       if ((t1 = SDL_GetTicks()) > t0)
600      {
601      /* Step the game state. */
602
603            st_timer(0.001f * (t1 - t0));
604
605            t0 = t1;
606
607      /* Render. */
608
609         hmd_step();
610            st_paint(0.001f * t0);
611            video_swap();

Specialized in x86 assembly,knows how to use c , c++ and a bit of java.
Focusing on the ForgeBall project and Minceraft.
Download Minceraft here->  link

2

Re: I found out how did protonspring slow down neverball.

Anyone?

Specialized in x86 assembly,knows how to use c , c++ and a bit of java.
Focusing on the ForgeBall project and Minceraft.
Download Minceraft here->  link

3

Re: I found out how did protonspring slow down neverball.

ANYONE?

Specialized in x86 assembly,knows how to use c , c++ and a bit of java.
Focusing on the ForgeBall project and Minceraft.
Download Minceraft here->  link

4

Re: I found out how did protonspring slow down neverball.

Congrats? What kind of reaction are you hoping for?

If you want a fair competition, don't use this.