Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1302302 Posts in 58045 Topics- by 49118 Members - Latest Member: IndieFan1

June 28, 2017, 09:39:17 am

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)The happy programmer room
Pages: 1 ... 237 238 [239]
Print
Author Topic: The happy programmer room  (Read 474825 times)
felipefsdev
Level 2
**



View Profile Email
« Reply #4760 on: June 11, 2017, 01:51:21 am »

Ok, complete beginner programmer here. I've recently started dabbling with C/C++ and, for practice, I made several console apps that do different things (not all were successfully compiled into what I want though because those seem to entail more complex stuff).
And a day or so ago I decided to take it to the next level and give a try at Allegro; setting it up was a pain (apparently, installing the devpak into Dev-C++ and trying to include the library wasn't enough to recognize the included header file(s) as existent), but I did it thanks to instructions for MinGW Allegro 4.2 which I guess I'll have to work with rather than with Allegro 5. For a start I've been attempting to get a bitmap screen to work and, through referring to the manual and two tutorials that cover the Allegro I use (one of which is on these very forums) and some trial and error, I've managed to successfully compile a fully functional program that draws a bitmap over another one (complete with transparency) and runs until you hit the escape button. Now the only thing left is to figure out how to make the cursor not flicker without also having the side effect of the program crashing when I hit the escape button.
Hey, it may not be some huge feat, but for a person who only recently began programming, this is a big step forward towards more complex programming Toast Left Grin
This is absolutely a good a achievement! :D


I finally finished the implementation of 'rotate', 'look_at', and 'perspective' matrices in my engine YAY! Painful, but finally working. I looked a lot in the source of GLM and linmath to learn the math.

And better yet, I have a guud and simple game idea in mind!
Logged

Prinsessa
Level 10
*****


Ava Skoog


View Profile WWW Email
« Reply #4761 on: June 12, 2017, 04:05:57 am »

Dev-C++? Wasn't that last updated like... fifteen years ago? o-o
Logged

JWki
Level 2
**


View Profile
« Reply #4762 on: June 12, 2017, 06:10:37 am »

Dev-C++? Wasn't that last updated like... fifteen years ago? o-o

It's not exactly what you'd call up to date yeah.
Logged
ThemsAllTook
Moderator
Level 10
******



View Profile WWW
« Reply #4763 on: June 12, 2017, 09:08:29 am »

Well-constructed software doesn't stop working from age alone.
Logged

ProgramGamer
Level 10
*****


"The programmer of games"


View Profile WWW Email
« Reply #4764 on: June 12, 2017, 11:29:19 am »

That would be true if the infrastructure around that software (drivers, OS, DLLs, etc...) didn't change almost constantly.
Logged

qMopey
Level 1
*


View Profile
« Reply #4765 on: June 12, 2017, 11:37:23 am »

That would be true if the infrastructure around that software (drivers, OS, DLLs, etc...) didn't change almost constantly.
Which is why some of the best code doesn't have any, or at least minimal, dependencies!
Logged
felipefsdev
Level 2
**



View Profile Email
« Reply #4766 on: June 12, 2017, 12:15:05 pm »

It's just an IDE. It's not like something critical. S/He could've been working with any simple editor.
Logged

Prinsessa
Level 10
*****


Ava Skoog


View Profile WWW Email
« Reply #4767 on: June 13, 2017, 06:36:58 am »

I seemed to recall it had its own compiler too, but I guess not?
Logged

JWki
Level 2
**


View Profile
« Reply #4768 on: June 13, 2017, 09:42:54 am »

I seemed to recall it had its own compiler too, but I guess not?

I thought the same yeah. I think it does really.
Logged
felipefsdev
Level 2
**



View Profile Email
« Reply #4769 on: June 13, 2017, 02:57:00 pm »

It uses MinGW-gcc.
Logged

JWki
Level 2
**


View Profile
« Reply #4770 on: June 14, 2017, 01:16:58 am »

It uses MinGW-gcc.

Oh does it
Logged
ThemsAllTook
Moderator
Level 10
******



View Profile WWW
« Reply #4771 on: June 26, 2017, 11:08:19 pm »

I got a new Mac recently, and naturally, it came with the latest OS X (or macOS or whatever the heck they've decided to call it today). Changing major OS version used to be a particularly arduous process for my development tools, because they relied on a bunch of stuff that Apple kept repeatedly breaking. I had made a concerted effort a while back to futureproof my build chain so that this wouldn't be as much of a problem anymore, and I got to see the fruits of my labor today - I updated everything and built it with the latest Xcode, and apart from having to fix a couple of new errors that clang (correctly) detected, everything went very smoothly.

I had taken pretty much an entire year off from game programming, so coming back to see my tools still just as sharp as I left them was particularly nice. Time to make some cool new stuff!
Logged

JWki
Level 2
**


View Profile
« Reply #4772 on: June 27, 2017, 12:44:28 am »

I got a new Mac recently, and naturally, it came with the latest OS X (or macOS or whatever the heck they've decided to call it today). Changing major OS version used to be a particularly arduous process for my development tools, because they relied on a bunch of stuff that Apple kept repeatedly breaking. I had made a concerted effort a while back to futureproof my build chain so that this wouldn't be as much of a problem anymore, and I got to see the fruits of my labor today - I updated everything and built it with the latest Xcode, and apart from having to fix a couple of new errors that clang (correctly) detected, everything went very smoothly.

I had taken pretty much an entire year off from game programming, so coming back to see my tools still just as sharp as I left them was particularly nice. Time to make some cool new stuff!

Must feel good to be back at it!
Logged
Prinsessa
Level 10
*****


Ava Skoog


View Profile WWW Email
« Reply #4773 on: June 27, 2017, 03:52:23 am »

Got a "new" (used) one too recently and tried Homebrew again for the first time in years and was happy to see how much it had grown since last time; got most of my libs from there and my projects up and running on the new computer in no time. Hand Metal Right
Logged

felipefsdev
Level 2
**



View Profile Email
« Reply #4774 on: Today at 06:40:31 am »

Uh... I think I got semaphores working on the first try.

I was using a set of booleans to manage the synchronization of the threaded main loop (render on the main thread, update on the second), and was working just fine. The problem is that I had to use a 'while' loop to check one of the booleans to wait the an update to finish... and it would use 20-30% of CPU. Not good. Semaphores solved the problem.

Magic.
Logged

JWki
Level 2
**


View Profile
« Reply #4775 on: Today at 06:53:54 am »

Uh... I think I got semaphores working on the first try.

I was using a set of booleans to manage the synchronization of the threaded main loop (render on the main thread, update on the second), and was working just fine. The problem is that I had to use a 'while' loop to check one of the booleans to wait the an update to finish... and it would use 20-30% of CPU. Not good. Semaphores solved the problem.

Magic.

Wait until you get to use fences.
Logged
qMopey
Level 1
*


View Profile
« Reply #4776 on: Today at 08:28:05 am »

Uh... I think I got semaphores working on the first try.

I was using a set of booleans to manage the synchronization of the threaded main loop (render on the main thread, update on the second), and was working just fine. The problem is that I had to use a 'while' loop to check one of the booleans to wait the an update to finish... and it would use 20-30% of CPU. Not good. Semaphores solved the problem.

Magic.

Does your semaphore contain a loop internally? Are you using a real atomic instead of a lock? Did you read some of the "little book on semaphores"? To me I'd say there's a 99% chance you have a bug. I worked in a studio that had semaphore bugs for a long time, as they are tricky to get right. I doubt you got yours right first chance.

Edit: Unfortunately my grumpy posts leaked into the happy topic.  Shrug
Logged
Prinsessa
Level 10
*****


Ava Skoog


View Profile WWW Email
« Reply #4777 on: Today at 09:06:06 am »

Got my little SDK up on a repository, cloned it onto the Linux machine, fixed up bash scripts to compile the command line tools, used the command line tools to compile the engine library, and used the tools to generate, build and run a default project linking against the library—just had to fiddle a bit to get everything working. Hand Thumbs Up Right Will add in the SSH compile soon so that I can compile for Linux on that machine from the Mac. e:
Logged

Pages: 1 ... 237 238 [239]
Print
Jump to:  

Theme orange-lt created by panic