Search found 20 matches
- Wed Jun 11, 2008 6:26 pm
- Forum: Beginners Help
- Topic: Securing Data
- Replies: 14
- Views: 991
- Fri May 30, 2008 11:36 am
- Forum: Beginners Help
- Topic: Frame Rate limit problem.
- Replies: 15
- Views: 767
The FPS is only updated once a second so you wouldn't get enough accuracy from it as the framerate will actually vary much more often than once a second and could vary a lot! But is it possible to make it more accuracy by calculating FPS based on frameTime on each frame? Like: 1000 ms / frameTime. ...
- Fri May 30, 2008 8:38 am
- Forum: Beginners Help
- Topic: Frame Rate limit problem.
- Replies: 15
- Views: 767
- Fri May 30, 2008 7:55 am
- Forum: Beginners Help
- Topic: Frame Rate limit problem.
- Replies: 15
- Views: 767
Should it work like this? u32 frameBeginTime; u32 frameEndTime; u32 frameTime; u32 lastFrameTime = 0; u32 deltaTime; while(device->run()) { frameBeginTime=timer->getRealTime(); //Loop things frameEndTime=timer->getRealTime(); frameTime = frameEndTime - frameBeginTime; deltaTime = frameTime - lastFra...
- Thu May 29, 2008 7:39 pm
- Forum: Beginners Help
- Topic: Frame Rate limit problem.
- Replies: 15
- Views: 767
Do you mean the change of time with delta time? Like endTime - beginTime. I am not sure about that term cause I am not native english speaker. But that should work. There is only one problem with distances then. Distances will come more uncontrolable. EDIT: By the way, what is the best way to do mai...
- Wed May 28, 2008 1:44 pm
- Forum: Beginners Help
- Topic: Frame Rate limit problem.
- Replies: 15
- Views: 767
I'm not sure what you're realy doing there... :lol: but this line is wrong: device->sleep(1000/frameLimit - loopTime); it must be: device->sleep(1000 / (frameLimit - loopTime)); hmmm. Why should that work? Acki: It's working like this way in current system: 1000 ms = 1 sec and FPS = 1/s so if limit...
- Wed May 28, 2008 12:48 pm
- Forum: Beginners Help
- Topic: Frame Rate limit problem.
- Replies: 15
- Views: 767
- Wed May 28, 2008 12:31 pm
- Forum: Beginners Help
- Topic: Frame Rate limit problem.
- Replies: 15
- Views: 767
Frame Rate limit problem.
I made a system to limit fps rate. But it's not working well. There is problem, it decrase fps too much. Here is the code: #define FRAMELIMIT 60 u32 beginTime; u32 endTime; u32 loopTime; u32 frameLimit = FRAMELIMIT; while(device->run()) { beginTime = timer->getRealTime(); //here is other loop things...
- Tue Apr 15, 2008 7:04 pm
- Forum: Advanced Help
- Topic: Invisable GUI Window
- Replies: 10
- Views: 979
- Tue Apr 15, 2008 2:33 pm
- Forum: Beginners Help
- Topic: How to make FPSCamera system work over network?
- Replies: 1
- Views: 175
How to make FPSCamera system work over network?
I've been wondered how to to make FPS game camera system work over network. The collisions are happening at the server side and server cares about player position. But the rotation of the players is the problem. I've been thought many different ways to make it and I don't have any good idea for that...
- Sun Apr 13, 2008 7:23 am
- Forum: Everything 2d/3d Graphics
- Topic: Lost in a world with 3D graphics.
- Replies: 40
- Views: 6951
- Sat Apr 12, 2008 11:57 am
- Forum: Beginners Help
- Topic: Menu System
- Replies: 8
- Views: 371
- Mon Apr 07, 2008 12:13 pm
- Forum: Beginners Help
- Topic: Compileing problem.
- Replies: 2
- Views: 249
Compileing problem.
I was making a project with a raknet. Until a error appeared, the code was not compiled. Then I tried to test tutorial if that works. But it doesn't work. Same problem... It is saying something about Linker error and compile log says: Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Ma...
- Wed Apr 02, 2008 1:13 pm
- Forum: Beginners Help
- Topic: How Can I convert stringc to int?
- Replies: 3
- Views: 225
How Can I convert stringc to int?
I have a problem at converting stringc type file to int. So, I have to get text from editBox and getText() returns stringc type data and I need to convert it to int format for futher use.
- Tue Mar 25, 2008 5:10 pm
- Forum: Beginners Help
- Topic: Problem with texturing bullet
- Replies: 9
- Views: 576