Perl 6 - the future is here, just unevenly distributed

IRC log for #sdl, 2013-08-23

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:26 FROGGS_ joined #sdl
09:04 daxim joined #sdl
09:23 jamesw joined #sdl
11:36 kthakore hi FROGGS_
11:36 kthakore mtj: around?
11:37 mtj heya kthakore
11:37 FROGGS_ hi kthakore
11:37 kthakore :D
11:37 kthakore morning
11:37 mtj whats up?
11:37 kthakore mtj: did you get any where with reading the XS stuff?
11:38 mtj yes, but only a little so far
11:38 kthakore I wanted to ask if you would be interested in working on a module for Alien::SDL and Alien::SDL2 where we find constants from headers of our sources and make a XS file for Constants.pm
11:38 kthakore FROGGS_: ^^ that is ridiciously faster and we get correct values on compile!
11:39 kthakore It has a longer load time
11:39 kthakore but during event loops where everything is loaded
11:39 kthakore it is lot faster
11:39 kthakore I will make benchmarks after we have some more constants done
11:39 FROGGS_ kthakore: are you just guessing or do you know it?
11:40 kthakore I ran benchmark using that module
11:40 kthakore erm fuck I don't have results here (at work)
11:40 mtj kthakore, yep, im keen to help with that
11:40 kthakore it will help you learn the XS side of SDL hacking too
11:41 mtj the plan is to start with SDL, not SDL2?
11:41 kthakore mtj: Chris Marshall mention there is a header file slurper in the OpenGL code that is where I would stat
11:41 kthakore we lets do it on SDL2 from the get go
11:41 kthakore FROGGS_: regardless of the speed. We get correct values if headers change!
11:42 kthakore that I think is more important
11:42 kthakore and if we can wrap the XS calls in use constants
11:42 kthakore that would be ideal
11:43 mtj ok
11:43 kthakore shaving of even .0001 in an event loop would be awesome
11:43 FROGGS_ yeah, SDL2's constants might change, but I doubt that for SDL
11:43 FROGGS_ but of course if would be cool if it was faster
11:43 FROGGS_ true
11:43 kthakore yeah for sure
11:43 kthakore off*
11:43 kthakore event loops suck right now :(
11:44 kthakore I was looking at having an implementation of ZeroMQ style queues in PlaySpine
11:45 kthakore FROGGS_: oh btw gotta show you something cool! gamepress <-- visual app to create small games
11:45 kthakore they are a company in the same business incubator as us
11:45 mtj kthakore, i finally got round to adding opengl support to my app, this week
11:45 kthakore NICE!
11:46 kthakore screenshots?
11:46 kthakore sorry I have been insane busy
11:46 mtj ...with code from your pogl_sdl_texture.pl example
11:46 kthakore Thesis + Business + Part Time JOb = life
11:46 kthakore cool! Glad it help!
11:46 kthakore helped*
11:47 kthakore FROGGS_: I am doing 5:45-12 erry day all day work :D
11:47 daxim does anyone want to port the tutorial to perl?  http://www.raywenderlich.com/24252/beginning-game-programming-for-teens-with-python
11:47 mtj but, i have some little bug with alphamasks on the final surface - the window is …. red-ish :/
11:48 kthakore mtj: did you make sure your format is fixed?
11:48 kthakore cause different computers like different format
11:48 kthakore there is a function for SDLx::Surface that will make sure the formats are the same
11:48 kthakore daxim: you!
11:48 daxim not me
11:48 kthakore hehe
11:48 kthakore why not?
11:48 mtj kthakore , no, i dont think have  - thank  you
11:50 daxim I'm not an expert
11:50 mtj kthakore, i did some experimenting, and got a fix by writing my SDL surface as a bitmap file, then reading the bitmap to a new surface
11:51 mtj for each frame O_o
11:51 kthakore mtj:  that is not optimal
11:51 kthakore yeah no
11:51 kthakore don't do that
11:51 kthakore set your display_format before
11:51 kthakore hmm trying to find that funcction for you
11:51 kthakore my memory sucks
11:51 kthakore daxim: you can be :) but I shall see
11:51 mtj yeah, i know its the wrong way, but at least it works :)
11:52 mtj i'm very happy to have gotten this far
11:52 kthakore mtj++ cool
11:52 kthakore mtj: it is in here someplace http://search.cpan.org/~jtpalmer/SDL-2.540/lib/pods/SDL/Video.pod
11:53 kthakore display_format_alpha use the return of  that as your 'base' surface
11:53 kthakore blit and write everything to that surface
11:53 kthakore and it should behave better
11:53 kthakore kk I must afk THESIS tiiimes
11:54 mtj fwiw, ive been dumping out the problematic 'red' surface and i can see that some loss/shift/mask vales are different to what is expected
11:54 kthakore daxim: thanks. If possible can you make an issue of that link and other tutorials that would be valuable in the SDL::Cookbook ?
11:56 daxim /PerlGameDev/MakeAGameBook ok?
11:56 kthakore sure
11:57 kthakore that will end up in SDL2::CookBook or if I have more tuits SDL and SDL2 cookbooks
11:58 kthakore kk back to work
12:04 mtj kthakore -> http://106.187.50.84/pub/defx2.png
12:05 mtj opengl screenshot
12:05 daxim it's blurry
12:06 mtj daxim, afaik, thats  an opengl 'feature'
12:07 mtj glShadeModel(GL_SMOOTH);
12:07 mtj glEnable(GL_BLEND);
12:08 mtj twas the default in kthakore's example - i didnt bother to change it yet
12:37 kthakore kk reading
12:37 kthakore err
12:37 kthakore look
12:37 kthakore ing
12:38 kthakore mtj: yeah comment out the glShade. Loogs good though!
12:38 kthakore also you are scaling some bitmaps
17:35 kaare joined #sdl
18:19 awwaiid joined #sdl
19:20 awwaiid joined #sdl
21:31 perlite_ joined #sdl

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary