• What are you working on? February 2012
    3,497 replies, posted
  • Ugh. I have no idea what to do. [img]http://images.devs-on.net/Image/Vv0iDKbnAMD1VWL-AdministratorCWi.png[/img]
  • What?! If I enable vsync and set the fps limit to 60 in my SFML game, it stutters quite visibly - but if I add a sf::Sleep(sf::Milliseconds(1)); to the main loop, it runs fine. This only happens in Windows, it's smooth in Linux already [img]http://i.somethingawful.com/forumsystem/emoticons/emot-psyduck.gif[/img]
  • [QUOTE=NovembrDobby;34511320]What?! If I enable vsync and set the fps limit to 60 in my SFML game, it stutters quite visibly - but if I add a sf::Sleep(sf::Milliseconds(1)); to the main loop, it runs fine. This only happens in Windows, it's smooth in Linux already [img]http://i.somethingawful.com/forumsystem/emoticons/emot-psyduck.gif[/img][/QUOTE] VSync AND limit the fps?
  • NovembrDobby: Are you busy waiting between frames? Rendering frames to a buffer that doesn't get presented could be considered busy waiting, as well...if so, your process may be considered generally non-interactive (as well as potentially starving other processes) and be demoted by the OS's CPU scheduler...and if you don't have the CPU in time to render the next frame, you could get stuttering. This can be solved by a sleep call. ...or is SFML a framework with a draw method you fill in?
  • [QUOTE=ROBO_DONUT;34511170]That's not a real quine.[/QUOTE] It outputs the source. Here's a fuck-you compliant quine: [i][url=http://pastebin.com/zSix1WGT]quine.lua[/url][/i] [img]http://images.devs-on.net/Image/NFRA1gV5AmhN1Dk-AdministratorCWi.png[/img] [editline]2nd February 2012[/editline] oh "input" is considered reading anything, and not just stdin okay, well fuck me then
  • [QUOTE=amcfaggot;34510529][editline]2nd February 2012[/editline] I did a quick test, turned off the compositing by switching to basic themes (Windows switches to XP and prior rendering methods on Windows Basic themes), and confirmed the issue. This seems to be related to how his window is updated, but in almost any case, this should never happen: [t]http://i.imgur.com/Ajhfo.png[/t][/QUOTE] Thanks - I fixed it - was passing 'SWP_NOREDRAW' to SetWindowPos that was fucking it up.
  • [QUOTE=swift and shift;34507683]I'd be interested in seeing some example syntax <Error> <Code>AccessDenied</Code> <Message>Request has expired</Message> <RequestId>BA90AFD56513C043</RequestId> <Expires>2012-02-02T07:10:16Z</Expires> <HostId> o4DOMUNtJzh02POeknrg4tJc2sd5QGpICbzxSIwPsjTWFY/dY30OK4IciIloGpNg </HostId> <ServerTime>2012-02-02T07:21:51Z</ServerTime> </Error>[/QUOTE] Fixed the picture. I'm sure Zach will be on later today to post some pictures and examples of the syntax. He has a ton of stuff. There's also a [i]very[/i] old YouTube video that sort of shows it in action [URL="http://www.youtube.com/watch?v=iibD0tk2MTU"]here[/URL]. This is from October, and he's since rewritten the compiler and is a lot further ahead in general. I believe that in this demonstration, he was pretty limited in what he can do, and if I understand correctly, today he's actually at the point where you could make somewhat complex games with his language. That'll be my job, I think, to make some games to showcase what CB is capable of.
  • God damn I love ReSharper. It can automatically turn this... [img]http://i.imgur.com/xK5ov.png[/img] into this... [img]http://i.imgur.com/3Hh0D.png[/img] Doesn't really help readability, though...
  • [QUOTE=vexx21322;34511382]VSync AND limit the fps?[/QUOTE] If I turn off vsync, the fps goes all over the place (set to 60, but goes as low as 50 and as high as 100). None of my code is framerate-independant (yeah yeah). [QUOTE=Night-Eagle;34511449]NovembrDobby: Are you busy waiting between frames? Rendering frames to a buffer that doesn't get presented could be considered busy waiting, as well...if so, your process may be considered generally non-interactive (as well as potentially starving other processes) and be demoted by the OS's CPU scheduler...and if you don't have the CPU in time to render the next frame, you could get stuttering. This can be solved by a sleep call. ...or is SFML a framework with a draw method you fill in?[/QUOTE] You make your own draw/update stuff. SFML used to have a getframetime method but that's gone now, I expect you have to do it manually over frames.
  • I had some developer accounts registered in a number of places a while back to assist with the development of an experimental artificial intelligence agent. Something along the lines of Siri, but far more naive by nature of limited speech recognition and natural language detection. Some time ago, one of the core components, [url=https://github.com/andrewmcwatters/lsapi]lsapi[/url], I had taken down due to not being content with the polish of the small project. After looking at it today, I realized it was fine, and I should have kept it up, so it's back up. I'd like to continue development on this project, but she needs a name. WAYWO, could you name my agent? Something clever. The good ol' boys at Web Development named her Anna for [i]Artificial neural network agent[/i] some time ago, but she's not a true neural network. Just an agent which works with services such as Wolfram Alpha, Google, Wikipedia, and other knowledge databases, search engines, and general information sites. Could you please name my child?
  • [QUOTE=Dlaor-guy;34512341]God damn I love ReSharper. It can automatically turn this... [img]http://i.imgur.com/xK5ov.png[/img][/QUOTE] I've used it so much that I wanted to click those green dotted lines in the picture...
  • Also, she'll be plugin based, so developers can contribute to her growth on their own clone of her, or the master codebase. I suppose if you wanted, you could think of the plugins as cores. Hurr hurr.
  • Visualizing the separating axis theorem. [vid]http://dl.dropbox.com/u/11093974/Junk/sat.webm[/vid] I said a long while back that I was going to upload my entire 3D collision detection library somewhere. However there were some complications with this, mainly because I also had an entire physics engine to develop alongside it that I did not want to distribute. I'm working on a new collision library, this time 2D. As well as a 2D physics engine which I'm more likely to give the source to (since this time it'll be for my purposes and not for the purposes of [url=http://youtube.com/dystopiamachina]another game[/url]). It'll be a while before I have anything worth sharing though.
  • [IMG]http://dl.dropbox.com/u/22597917/inventory.png[/IMG] awww yeah and the best part: [CODE] KeyboardState ks = Keyboard.GetState(); if (ks.IsKeyDown(Keys.C) && !PressedKeys.Contains(Keys.C)) { CharInventory.Visible = !CharInventory.Visible; } if (ks.IsKeyDown(Keys.I) && !PressedKeys.Contains(Keys.I)) { Inventory.Visible = !Inventory.Visible; } PressedKeys = ks.GetPressedKeys();[/CODE] could this be any more beautiful, I doubt it ;p Design and position are just random so far, it's all about implementation right now!
  • [QUOTE=amcfaggot;34511512]It outputs the source. Here's a fuck-you compliant quine: [i][url=http://pastebin.com/zSix1WGT]quine.lua[/url][/i] [img]http://images.devs-on.net/Image/NFRA1gV5AmhN1Dk-AdministratorCWi.png[/img] [editline]2nd February 2012[/editline] oh "input" is considered reading anything, and not just stdin okay, well fuck me then[/QUOTE] I can [I]almost[/I] do a quine in lua: [lua]local x = [[print( "local x = [[" .. x .. "]]\n" .. x )]] print( "local x = [[" .. x .. "]]\n" .. x )[/lua] But I'm not aloud to do nested [[s for some reason without doing [=[
  • Is anyone here any good with mandelbrot creation? I am having trouble with the zooming in and out with mandelbrots
  • [QUOTE=Ziks;34512748]I can [I]almost[/I] do a quine in lua: [lua]local x = [[print( "local x = [[" .. x .. "]]\n" .. x )]] print( "local x = [[" .. x .. "]]\n" .. x )[/lua] But I'm not aloud to do nested [[s for some reason without doing [=[[/QUOTE] Don't bother with nested [[s or [[]] at all. Utilize single and double quotes, and make sure you're using them in the right places, otherwise your recursion won't come out properly if you're attempting to escape characters whilst they're not escaped on-screen.
  • [QUOTE=jalb;34512440]Visualizing the separating axis theorem.[/QUOTE] It's awesome how a single gif/video can make you understand something complicated. Just like this gif made me instantly understand bezier curves. [img]http://upload.wikimedia.org/wikipedia/commons/f/ff/Bezier_3_big.gif[/img]
  • [QUOTE=Nighley;34512661][IMG]http://dl.dropbox.com/u/22597917/inventory.png[/IMG][/QUOTE] The art style looks really nice.
  • [QUOTE=DarKSunrise;34513584]The art style looks really nice.[/QUOTE] really? I always thought that I'm horrible at art ;p at least that's what my art teacher always told me back when I was young and innocent ;p
  • [QUOTE=DarKSunrise;34513772]Yeah, it really does look nice. Maybe the road should be a bit more curvy though.[/QUOTE] yeah the road is still part of my todo list I already have an idea how to make them look more realistic. the moment I finished the inventory system I'll be right at it.
  • [QUOTE=Dlaor-guy;34512341]God damn I love ReSharper. It can automatically turn this... [img]http://i.imgur.com/xK5ov.png[/img] into this... [img]http://i.imgur.com/3Hh0D.png[/img] Doesn't really help readability, though...[/QUOTE] I don't understand how one can use bloat, that is R#. Hate it -_-
  • [QUOTE=uint64;34513862]I don't understand how one can use bloat, that is R#. Hate it -_-[/QUOTE] Can you explain what you mean? Since I've installed it I've only gotten positive results/increased productivity in my coding. What do you mean by bloat?
  • Oh wow. Looks like I just got a free expo pass to GDC in San Fran this March. In a few weeks I'll be hopping on another project with a professor of mine. If all goes well I'll get a "free all inclusive pass" to GDC Austin in October and likely present on stage a part of this technology. I am both excited and terrified. Anyone else going to either of these?
  • [lua]local x = [[print( "local x = [=[" .. x .. "]=]\n" .. x:sub( 1, 19 ) .. x:sub( 21, 33 ) .. x:sub( 35 ) )]] print( "local x = [[" .. x .. "]]\n" .. x:sub( 1, 19 ) .. x:sub( 21, 33 ) .. x:sub( 35 ) )[/lua] Quine motherfucker
  • [QUOTE=Socram;34513915]Can you explain what you mean? Since I've installed it I've only gotten positive results/increased productivity in my coding. What do you mean by bloat?[/QUOTE] It's true that it uses a lot of memory (at the moment it's using 115 MB) and that it starts very slowly but once the stuff is all running it's amazing.