Demon
User Control Panel | Member List | FAQ | Privacy Policy | Blogs | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Chocolate Doom
Pages (67): « First ... « 64 65 66 [67]  
Author
All times are GMT. The time now is 10:28. Post New Thread    Post A Reply
axdoom1
Member


Posts: 532
Registered: 05-11


I did some debugging. There's no frameskip, there's no dead code. I suspect the frames are displayed at irregular intervals, just like Linguica explained and this gives the illusion that Chocolate-Doom skips frames, but in facts it's just that some frame take longer before they are replaced with the following frame. I can't confirm, I'd use <Chrono>, but MSVC doesn't want to let me use C++ in my code. I'll look on the Web and find another way, then I'll post the results...

Old Post Feb 10 2016 00:12 #
axdoom1 is offline Twitter account Youtube Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
axdoom1
Member


Posts: 532
Registered: 05-11


code:
long start = clock(); long diff; printf("."); // wait for new tics if needed while (!PlayersInGame() || lowtic < gametic/ticdup + counts) { NetUpdate(); lowtic = GetLowTic(); if (lowtic < gametic/ticdup) I_Error ("TryRunTics: lowtic < gametic"); // Still no tics to run? Sleep until some are available. if (lowtic < gametic/ticdup + counts) { // If we're in a netgame, we might spin forever waiting for // new network data to be received. So don't stay in here // forever - give the menu a chance to work. if (I_GetTime() / ticdup - entertic >= MAX_NETGAME_STALL_TICS) { return; } I_Sleep(1); } } diff = clock() - start; int msec = diff * 1000 / CLOCKS_PER_SEC; printf("Time taken %d seconds %d milliseconds\n", msec / 1000, msec % 1000);
no printf: http://pastebin.com/sED1wdDt
with printf before the while loop: http://pastebin.com/yWmJZcXb

The results are disappointing. I can only conclude that a printf makes every tics in Chocolate-Doom a few milliseconds slower.

I moved my timer inside the main loop (d_main.c). I start timing right after while (1) and I print the time right after the last function call of the loop.

printf inside the main loop: http://pastebin.com/uVA1pbBi

To test the version without the printf, I had to print to a file because printf inside the main loop fixed the issue: http://pastebin.com/94pfN9uQ

I can't see any problem here, so I would say the framerate issue is caused by a desynchronization with my display.

The bug fix made Chocolate-Doom run at 35 FPS instead of 60, but the engine doesn't take care of synchronizing the framerate of the game with the refresh rate of my display anymore.

Last edited by axdoom1 on Feb 10 2016 at 01:11

Old Post Feb 10 2016 01:02 #
axdoom1 is offline Twitter account Youtube Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Linguica
Badministrator


Posts: 8892
Registered: 12-99


I'm not so sure, since as my testing with the video seemed to show, it's very difficult to notice the result of 30hz versus 35hz on a 60hz display even when you're actively looking for it.

Old Post Feb 10 2016 01:09 #
Linguica is offline Twitter account Youtube || Blog || PM || Post History || Add Buddy IP || Edit || Quote
ABRACADABRA
Junior Member


Posts: 174
Registered: 01-15



axdoom1 said:
I'm leaving my new exe here in case ABRACADABRA wants to try it to see if it also fixed his issues with the framerate:
http://www.mediafire.com/download/w...amerate-fix.zip


surprisingly it did

my specs btw is laptop with geforce 7100m and intel hd 3000

Old Post Feb 10 2016 07:32 #
ABRACADABRA is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Maibigbutt
Mini-Member


Posts: 54
Registered: 02-16


How do I use the ultimate doom on chocolate doom?

Old Post Feb 15 2016 04:12 #
Maibigbutt is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
ABRACADABRA
Junior Member


Posts: 174
Registered: 01-15




or you can use one of the amazing doom launchers found somewhere on this forum

Old Post Feb 15 2016 07:31 #
ABRACADABRA is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
chungy
Senior Member


Posts: 2359
Registered: 06-05


you can also run chocolate-doom-setup and use the Level Warp feature to select Ultimate Doom :P

Old Post Feb 15 2016 08:15 #
chungy is online now Youtube Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Perilous Pear
Warming Up


Posts: 12
Registered: 02-16


Playing Scythe on it (I'm using Doom Launcher, with Doom 2 IWAD), the automap shows the same level names as Doom 2 (Entryway and Underhalls instead of Get Going and Punchline). A very minor problem, but is there a DeHacked patch for it or something else that would fix it? I remember playing Plutonia 2, and the levels in there were written correctly (Although I played that with ZDoom and a DeHacked patch on).

Old Post Feb 24 2016 20:39 #
Perilous Pear is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
fraggle
Registered just to make two posts


Posts: 9455
Registered: 12-99


Some WADs come with a dehacked patch to change the level names, but it seems Scythe doesn't have one.

Old Post Feb 24 2016 22:46 #
fraggle is offline Twitter account Youtube Twitch Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
VGA
Senior Member


Posts: 2015
Registered: 05-14


There should be a database of dehacked patches for all significant megawads.

Making them is kinda easy. The thing is to have a centralised place for them.

__________________
Black Ops (smooth weapons dehacked mod for Doom Retro, Eternity, prboom+, ZDoom)
SMOOTHED (Smooth monster animations and alternative deaths for Doom Retro)

Old Post Feb 25 2016 01:29 #
VGA is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Danfun64
Member


Posts: 645
Registered: 07-10


I made vanilla compatible patches for Eternal Doom (cybersweeper and credits separately. level name only for all), H2H-Xmas (level name only), Fava Beans (level name only), No End in Sight Beta 22 (level name only), and Icarus (level name. Intermission Text simplified and based off of NightFright's ZDoom Pack), as well as long-name patches for the Serenity trilogy (level name only for all)

I am also in the process of making level graphics for Fava Beans, No End in Sight Beta 22, and the Serenity trilogy.

Should I upload them?

Last edited by Danfun64 on Feb 25 2016 at 01:56

Old Post Feb 25 2016 01:43 #
Danfun64 is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Perilous Pear
Warming Up


Posts: 12
Registered: 02-16


Nope, there isn't one for Scythe. I'll check from time to time if someone decides to make it and upload it..

Old Post Feb 25 2016 18:57 #
Perilous Pear is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
fraggle
Registered just to make two posts


Posts: 9455
Registered: 12-99


This thread is now closed. Please use the new Chocolate Doom thread for future chocolatey discussion.

Old Post Feb 25 2016 20:40 #
fraggle is offline Twitter account Youtube Twitch Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 10:28. Post New Thread    Post A Reply
Pages (67): « First ... « 64 65 66 [67]  
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Chocolate Doom

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by vBulletin
Copyright vBulletin Solutions, Inc.