| |
| |
| |
|
Comments:
<0> hi <0> I just have a doubt, should read only shared data also be protected by a mutex? <0> Or data with one read write thread and one read only thread? <1> kuonSama: If you don't write, you can read from N threads at the same time. If you write, you generally need a mutex, unless you use atomic write and read operations. <0> Zao: I have an animation thread <0> and it's the only thread writing to the animation data (position, velocity...) <0> and I have the render thread reading that data <0> I thought it was not needed to use a mutex, as animation can write whenever it wants (and should be able to) and render has nothing to say, just read what animation wrote <1> You could then get inconsistent data during the rendering frame. <0> yes I know <0> but that's not really important
<0> as it's space objects <0> if render reads x and y from frame n and z from fram n + 1, it should not do any visual glitch <0> I just wanted to be sure, that except behaviour I can expect, nothing is wrong with it. <1> How about if x is partially from frame n and partially from frame n+1? <0> how can it be? <1> If the write is non-atomic, you can get invalid data. <1> It all depends on your platform. <0> macosx and windows <0> I use SDL for threads <1> I'm no threading expert, so I shouldn't say much more since I might not be totally correct. <0> how can I know my write operation will be atomic? <0> I mean, 32bit write should be atomic, no? <2> The project I'm working on is using pcx files in the form of "cchar* igraph::RawGraphicFileName[] = {file names}". It's currently using pcx. Can I load pngs in the same way and have everything not screw up? <2> Or should I just try 'n pray? <3> Is SDL built on top of OpenGL for linux? <4> SDL doesn't do opengl <4> you can do opengl on SDL window though <3> Are there any windowing things for SDL like Gtk+? <2> SDL is built on top of X. <2> If I remember right. <5> hiya <6> Does any one know what happened to the OS X SDL development installer? <6> There used to be an excellent .pkg installer for OS X, but now it seems to be replaced with some garbage dmg with loose files and folders with no indication where to install them. <7> Hello :) <8> hello guys, I am wondering, if SDL. how easy is it to use. I am new to C. I under most things but pointers. <9> sdl uses a lot of pointers :) <9> but play with the example code and you might be able to figure it out pretty well <8> even if I **** at alegbra stuff.. :D <10> Aspire: http://pw1.netcom.com/~tjensen/ptr/ <8> would you suggest sticking with devcpp or djgpp <8> I am on an old laptop and memory is like 128mb <8> I would go to linux, but have only one drive.. and can't split do fdisk without losing data <10> Aspire: That's four times as much I am working with. :) <8> pentium 2 thou.. <8> if I was running linux I'd have a little more control. <8> so... didnt hear if devcpp or djgpp.. which is better.. <9> Aspire: if you have the space it is possible to repartition a drive without losing data <8> http://partitionlogic.org.uk/ would this work? <9> not sure if that supports it <9> I know the commercial app Partition Magic can do it, but I'm sure there is also a free one <8> would you know a open source one that might help <8> oh <9> that app might do it but I'm not familiar with it
<9> http://www.help2go.com/Tutorials/Computer_Basics/How_to_Repartition_Hard_Drive_without_Reformatting.html <9> if you don't want to risk it I'd probably say that mingw32 is decent enough in windows, i think devcpp uses that <8> yea I better learn C more, I guess, I dont know really all that much about logic.. there was some mapping program for programers. I'm visual learn. if that helps. lol <10> programmers or pro gamers? <10> ;-) <11> anyone had luck using pygame in pygtk? <12> I can't get the right colors to appear using SDL_gfx functions, though I can in plain SDL - can anyone help? <13> i'm having an issue where sdl isn't releasing it's resources after calling SDL_Quit(), according to valgrind, note that this paste is the only unit which initializes anything from SDL http://cpp.sourceforge.net/?show=28211 <13> anyone know whats wrong? <14> check the mailinglist archives for more on that <15> im starting soon to upload all the mailing lists archives to the sdl forum <15> in a shape of topics <15> (its going to be exhausting work) <15> because to do that on one archive takes +- 2 hours <13> it will probably take just as long for me to find an answer to my question there as well <16> it's too bad how google ****s for searching mailing lists and forums <13> oh wait, i just discovered that leaks of the same kind are occuring with SDL-1.2.11/test/testwm according to valgrind <13> is this something unusual? <15> metabol - don't worry , it all be soon in the message board.. <17> Hi <17> Does anbody here know about using SDL with Perl and POE? <7> Hello :) <8> hey relic <7> :) <8> whats up.. <11> the sky >_< <7> cost of everything? <11> or in my case a fluorescent tube :) <8> Ceiling here <7> I got both flourescent tubes and ceiling, I win :) <11> yeah, my fluorescent tube just hangs in space :) <15> no no.. i got a light bulb and ceiling. that worth more points than a flourscent tube and ceiling <11> no, we conserve more energy :) <11> that we can spend on keeping more boxes up :) <8> I was starting learn pointers, and my ADD mind, though, how in games, people health, ammo, etc. the objects, are at a block in memory. if u know game genie codes. how if u change one letter, it is based on value. <15> i don't really understand. but im guessing you aren't asking anything here <8> well I'm asking if it makes sense of how pointers kinda work <11> Aspire: it does <11> and you'll learn to enjoy pointers and pointer h4x :) <11> i like pointers :) <11> especially when working with derived cl***es in C++ <18> How do I reset the video mode in X when an sdl game crashes (short of killing X or rebooting)? <14> xrandr -s 0 <11> i was going to say make a SDL app to reset it, but xrandr makes more sense :) <8> where an object say Boy. and inside boy could be his location on screen, and his health. then object enemy. hits the boy then u use pointer to point to memory and change his health. <18> Can I run that from another virtual terminal or do I have fumble in the dark to open a console? <11> Aspire: no, you would use a cl*** to control all that <11> Aspire: read "The C Programming Languag" <14> anything with a connection to the x server will do <11> Aspire: i suppose if you set the DISPLAY variable properly you can
Return to
#sdl or Go to some related
logs:
Lost connection to MySQL server 2013 wait_timeout select count(*) from table where 1
#css delete files from dvd #perl #kde ATI X1300Pro x.org FreeBSD #debian #math #suse
|
|