[QUOTE=Overv;30576091]How does SDL blit pixels to the screen at interactive framerates? Is it using GDI+ or something completely different?[/QUOTE]
It can use a variety of backends.
On Linux it probably uses OpenGL (if available). I think in 1.2 it was also the default on Windows, but for 1.3 it's DirectX .. 9?
You can also change the default setting with an environment-flag.
Edit:
[url]http://hg.libsdl.org/SDL/file/45a709ef443d/src/render[/url]
There's no official GDI or GDI+ backend though.
[QUOTE=Lord Ned;30578857]GPU's have hardware paths for crazy-fast calculations of a specific kind.[/QUOTE]
Massively-parallel calculations of a specific kind, actually: the speed comes from being able to work on hundreds or thousands of pixels simultaneously.
[QUOTE=Map in a box;30578803]I wonder, since GPUs are cheaper than CPUs, wouldn't it be cheaper and faster to use a GPU as your CPU?[/QUOTE]
GPUs can do some [url=http://www.opengl.org/sdk/docs/manglsl/]very specific operations[/url] really fast in parallel, and it only has to address it's own memory - VRAM.
CPUs can do a lot of different types of calculations and has to address it's own cache, RAM, read/write to SATA/IDE devices like hard drives and DVD drives, communicate with PCI devices like the graphics card or a sound card, and interface with other external peripheral devices like the keyboard, mouse, etc.
[QUOTE=esalaka;30568269]The registry does get corrupted.[/QUOTE]
i'm sorry, but in 8 years of using Windows, I've never experienced a corrupted registry.
[img]http://f.anyhub.net/3dMY[/img]
The code is horrible, I'm going to start from scratch with a better idea.
I only just started programming at the start of May, and now I find out this thread exists. I'm only now realizing how bad I am at programming, but for the first time in a long time, I'm motivated to do better :buddy:
[QUOTE=Greenen72;30579421]I only just started programming at the start of May, and now I find out this thread exists. I'm only now realizing how bad I am at programming, but for the first time in a long time, I'm motivated to do better :buddy:[/QUOTE]
I've been learning C# since the start of this year and I'm still bad. But that feeling when you learn something knew with a language is awesome.
Why can I not spotlight??
[img]http://i.imgur.com/1qcEt.png[/img]
Because that is most certainly not an attic, don't try to deceive us! :v:
:ssh:
Should have my time consuming web assignment done by the end of the month, then I can get back to what I love :buddy: going to read up, gpu gems, dx9 shader approach, 3d maths for graphics programming, etc
Then work on a rendering engine. Over the past 2,3 months my attitude toward games programming has changed a ton, will probably be working on simple gfx demos just for fun
(and eagerly awaiting posts by layla as well :heart:)
[QUOTE=esalaka;30568269]The registry does get corrupted.[/QUOTE]
Be more specific by what you mean by 'corrupted'. Do you mean the whole registry just starts having random characters everywhere? Certain entries get removed? Or simply some program fucks up some other programs stuff? The registry is just a bunch of registry hive files somewhere in the Windows folder, files don't just get randomly corrupt. There must be a reason. Unless a program removes/fucks up stuff on purpose, but that can be called a virus and it's not really Windowses fault. If you name your folder in the registry something other programs can't just guess randomly, you should be ok.
[editline]20th June 2011[/editline]
[QUOTE=tngr;30579394]i'm sorry, but in 8 years of using Windows, I've never experienced a corrupted registry.[/QUOTE]
I haven't seen a registry corruption in over 9 years either.
Macs are better cause their registry doesn't get corrupted :smug:
It is amazing how much my game is progressing, with 6 lines of code I added listen server support as well as having dedicated server support.
I also have a animated menu system and a semi persistent database.
[QUOTE=Kopimi;30580608]Macs are better cause their registry doesn't get corrupted :smug:[/QUOTE]
Mac doesn't have a registry at all. I don't see how it COULD get corrupted.
[QUOTE=DeadKiller987;30580671]Mac doesn't have a registry at all. I don't see how it COULD get corrupted.[/QUOTE]
The joke.
Your head.
Also, I never really researched into Löve.
Is it good? Is it easy?
Also, didn't really code Lua since I was 12 and played Roblox :awesome:
[QUOTE=DeadKiller987;30580671]Mac doesn't have a registry at all. I don't see how it COULD get corrupted.[/QUOTE]
ugh
After finally getting my room back in a usable state I did some programming and I know some of you are going to make smart arse comments about how shit/noob/lame this is, but in my opinion some shit content is better then no content.
[media]http://www.youtube.com/watch?v=2Ldgky5eJ5A[/media]
[QUOTE=Jimmylaw;30581394]After finally getting my room back in a usable state I did some programming and I know some of you are going to make smart arse comments about how shit/noob/lame this is, but in my opinion some shit content is better then no content.
[media]http://www.youtube.com/watch?v=2Ldgky5eJ5A[/media][/QUOTE]
At 0:04 did one of the enemies disappear without being hit?
[QUOTE=DeadKiller987;30581715]At 0:04 did one of the enemies disappear without being hit?[/QUOTE]
It appears your correct and its not just a glitch on the video, it does it every time but only with that enemy, strange.
[QUOTE=Richy19;30569775]Is it possible to get information from a minecraft server without needing a minecraft user?
Just stuff like the amount of players it allows and stuff like that?
Should also say that this would be over the internet so not locally[/QUOTE]
You could code a simple client that connects to the server:
[url]http://mc.kev009.com/How_to_Write_a_Client[/url]
[url]http://mc.kev009.com/Protocol[/url]
Anyone care to quickly explain how to do brute-force 2d lighting ?
I need something similar to this [quote=BAZ][img]http://i.imgur.com/XifIj.gif[/img][/quote]
[QUOTE=Xerios3;30581990]Anyone care to quickly explain how to do brute-force 2d lighting ?
I need something similar to this[/QUOTE]
Brute force? Just trace a ray from every tile in a radius around the light source to the light source and if it hits anything it's dark and if it doesn't it's lit.
Obviously that's pretty slow, but for a tiled game it should be fast enough.
Isn't tracing a ray through tiles a bit too much ? I mean then I'll have to make sure that the I cast enough rays to cover all surrounding tiles, maybe there's an easier way.
I've been searching a good config file format lately, because Lua was too advanced for my needs, XML is ugly and bloated and INI just doesn't cut it. Then I thought: JSON!
So I downloaded this Json library for C# and so far I'm loving it! It can serialize classes into Json files and vice versa, so that's pretty damn handy. Here's an example, this is my configuration class:
[cpp]
class Configuration
{
public uint ResolutionWidth { get; set; }
public uint ResolutionHeight { get; set; }
public bool FullScreen { get; set; }
}[/cpp]
Then I do...
[cpp]Configuration config = new Configuration() { ResolutionWidth = 1280, ResolutionHeight = 720, FullScreen = false };
serial.Serialize(jWriter, config);[/cpp]
And then I write the result to Config.json:
[code]{
"ResolutionWidth": 1280,
"ResolutionHeight": 720,
"FullScreen": false
}[/code]
Perfect!
[QUOTE=Robber;30581815]You could code a simple client that connects to the server:
[url]http://mc.kev009.com/How_to_Write_a_Client[/url]
[url]http://mc.kev009.com/Protocol[/url][/QUOTE]
Wouldnt that require tto have a minecraft user tho?
[QUOTE=Xerios3;30582122]Isn't tracing a ray through tiles a bit too much ? I mean then I'll have to make sure that the I cast enough rays to cover all surrounding tiles, maybe there's an easier way.[/QUOTE]
You only need to do it every time the light moves and for a circular light with a diameter of 10 squares you only need to trace ~80 tiles. I'd be surprised if it took more than a couple of ms.
So then what do you guys think supcom has done in order to get those blue lines?
Rays all around?
[img]http://i.imgur.com/zNg0A.jpg[/img]
They're all coming out of the center, just like a light
[QUOTE=Xerios3;30582122]Isn't tracing a ray through tiles a bit too much ? I mean then I'll have to make sure that the I cast enough rays to cover all surrounding tiles, maybe there's an easier way.[/QUOTE]
There are faster ways, but they are certainly not easier. Also, as Jallen said, it's still fast enough.
[QUOTE=Richy19;30582189]Wouldnt that require tto have a minecraft user tho?[/QUOTE]
Yes, unless the server doesn't have authentication enabled. The only other way would be to mod the server. I think that could be done as a Bukkit plugin.
Sorry, you need to Log In to post a reply to this thread.