Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411281 Posts in 69324 Topics- by 58380 Members - Latest Member: bob1029

March 28, 2024, 10:31:29 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)The happy programmer room
Pages: 1 ... 163 164 [165] 166 167 ... 279
Print
Author Topic: The happy programmer room  (Read 673094 times)
InfiniteStateMachine
Level 10
*****



View Profile
« Reply #3280 on: March 15, 2013, 03:12:29 AM »

Also one of my favorite bands of all time is releasing a new album after 7 years and the first single is NOT A DISSAPPOIONTMENT! :D
Which band ? Just curious.

The Knife

Aw man, you got me excited for a Tool single Sad

My sincerest apologies Smiley
Logged

kamac
Level 10
*****


Notoriously edits his posts


View Profile
« Reply #3281 on: March 15, 2013, 08:31:20 AM »

A-thingy-a-day. Got actors events to actually work and be executed - for now only command MESSAGE is supported, and it means boxes with messages coming from bottom of one's view. Woo hoo, hoo.
Logged

Evan Balster
Level 10
*****


I live in this head.


View Profile WWW
« Reply #3282 on: March 16, 2013, 11:21:03 PM »

I think I just made a working system for polyphonic pitch detection.  WTF
Logged

Creativity births expression.  Curiosity births exploration.
Our work is as soil to these seeds; our art is what grows from them...


Wreath, SoundSelf, Infinite Blank, Cave Story+, <plaid/audio>
Belimoth
Level 10
*****


high-heeled cyberbully


View Profile
« Reply #3283 on: March 16, 2013, 11:53:28 PM »

Realtime? Either way that's damn impressive.
Logged

InfiniteStateMachine
Level 10
*****



View Profile
« Reply #3284 on: March 17, 2013, 12:22:14 AM »

Just one of those all around good days where you can look back and actually feel like you got something done Smiley

Also hit 150 kanji in my japanese studies.
Logged

vexille
Level 0
**



View Profile WWW
« Reply #3285 on: March 17, 2013, 01:29:12 PM »

Finally found a good game library in java, with opengl to boot (Slick2D)! I've started my new project with it, trying to make a cinematic platformer (like Flashback and Oddworld). I've hit kind of a snag with tile based movement, but I'll get through.
Logged
_Tommo_
Level 8
***


frn frn frn


View Profile WWW
« Reply #3286 on: March 18, 2013, 02:48:42 PM »

I just did a massive pull request on my engine and a port to Android, now we are officially supporting it Big Laff
Logged

Austiyn
Guest
« Reply #3287 on: March 20, 2013, 09:04:56 PM »

Created a very good looking loop for Java.

Code:
long lastTime = System.nanoTime();
final double goalTicks = 60.0;
double ns = 1000000000 / goalTicks;
double delta = 0;
int updates = 0;
int frames = 0;
long timer = System.currentTimeMillis();
while(running) {
long now = System.nanoTime();
delta += (now - lastTime) / ns;
lastTime = now;
if(delta >= 1){
tick();
delta --;
}
render();
frames ++;

if(System.currentTimeMillis() - timer > 1000){
timer += 1000;
updates = 0;
frames = 0;
}
}
Logged
moi
Level 10
*****


DILF SANTA


View Profile WWW
« Reply #3288 on: March 21, 2013, 05:29:54 AM »

Created a very good looking loop for Java.

you update game logic every 1/60th second but render frames constantly ?
Isn't that the opposite of what you're supposed to do?
Logged

subsystems   subsystems   subsystems
zacaj
Level 3
***


void main()


View Profile WWW
« Reply #3289 on: March 21, 2013, 05:30:47 AM »

I thought that was what you were supposed to do...
Logged

My twitter: @zacaj_

Quote from: mcc
Well let's just take a look at this "getting started" page and see--
Quote
Download and install cmake
Noooooooo
Klaim
Level 10
*****



View Profile WWW
« Reply #3290 on: March 21, 2013, 05:37:28 AM »

AFAIK, it depends: most games don't need ASAP updates, physical games needs fixed frequency updates, and depending on what is the bottleneck it might be either rendering or game update that need ASAP updates.

I'd go with fixed frequency for both personally. Far more predictable.
Logged

ThemsAllTook
Administrator
Level 10
******



View Profile WWW
« Reply #3291 on: March 21, 2013, 05:39:48 AM »

I thought that was what you were supposed to do...

Yeah, looks mostly right to me. Updating at a consistent interval is far more important than rendering at one. Using a variable update interval will throw your whole simulation off. I would be inclined to change that if (delta >= 1) { ... } to while (delta >= 1) { ... } though, so that your simulation won't fall behind if a frame takes more than a 60th of a second to render.
Logged

moi
Level 10
*****


DILF SANTA


View Profile WWW
« Reply #3292 on: March 21, 2013, 06:41:51 AM »

I update game logic asap, but I use delta time everywhere so that it remains consistent
Logged

subsystems   subsystems   subsystems
Austiyn
Guest
« Reply #3293 on: March 21, 2013, 08:46:43 AM »

I thought that was what you were supposed to do...

Yeah, looks mostly right to me. Updating at a consistent interval is far more important than rendering at one. Using a variable update interval will throw your whole simulation off. I would be inclined to change that if (delta >= 1) { ... } to while (delta >= 1) { ... } though, so that your simulation won't fall behind if a frame takes more than a 60th of a second to render.

That is a very good idea. I'll try that out Smiley
Logged
pixhead
Guest
« Reply #3294 on: March 21, 2013, 07:09:22 PM »

Finally got Qt to compile through code blocks. Fuck you QtCreator, I already got an IDE, I don't need another.
Logged
George Michaels
Level 0
***


I like big butts and I can not lie


View Profile
« Reply #3295 on: March 21, 2013, 09:30:52 PM »

Got multiplayer working!! Tears of Joy  Beer!

EDIT: Also just learnt that I don't need to worry about serializing my data because x86 and x86_64 use the same endianness, MSVC and GCC use the same padding for most types. The only issue is double types on 32 and 64 bit systems which is solved by just casting them to floats which have the same size on both :D
« Last Edit: March 22, 2013, 03:04:18 PM by George Michaels » Logged

Yeah, that.
rivon
Level 10
*****



View Profile
« Reply #3296 on: March 22, 2013, 08:33:40 AM »

Finally got Qt to compile through code blocks. Fuck you QtCreator, I already got an IDE, I don't need another.
That's the reason why I didn't use Qt in one project. Why the fuck do I have to use two extra "compilers" before actually compiling the app? No other GUI library needs anything like that. Macros are enough for all of them. Why not for Qt?
Logged
Schrompf
Level 9
****

C++ professional, game dev sparetime


View Profile WWW
« Reply #3297 on: March 22, 2013, 09:12:53 AM »

The QT meta compiler, while being an annoyance, adds reflection and such to the code. Qt4 heavily relies on it for properties, signals and slots. But the feature list of Qt5 contains an entry "templated-based signals and slots", which got my hopes up for hassle-free compilation in the future.
Logged

Snake World, multiplayer worm eats stuff and grows DevLog
pixhead
Guest
« Reply #3298 on: March 24, 2013, 06:20:26 PM »

Yeah, getting everything running was a fucking pane(pun), but if you add pre-build steps, you can automate qmake inside Code Blocks. And it's definitely worth the initial effort, Qt is awesome, IMHO.
Logged
epcc
Level 1
*


View Profile
« Reply #3299 on: March 24, 2013, 10:13:44 PM »

IMO qtcreator it a lot better than code::blocks. I only used it for some weeks, but the autocomplete was working a lot better and I still miss the feature that copies function arguments from declaration to definition.
Logged

Pages: 1 ... 163 164 [165] 166 167 ... 279
Print
Jump to:  

Theme orange-lt created by panic