Echoes of the Imperium (4X Strategy Game)

Show off your games, demos and other (playable) creations.
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: 4X Space Game (Tech Demo Released)

Post by Lap »

Ah the woes of multiplatform development. I have absolutely no way of replicating such crashes at the moment. Same crash as in your last post or something different?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: 4X Space Game (Tech Demo Released)

Post by Robin »

Lap wrote:Same crash as in your last post or something different?
Same I think.
Help us help you: attach a .love.
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: 4X Space Game (Tech Demo Released)

Post by Lap »

I don't think that line exists on the SVN anymore. Has to be something new (unless you didn't update after you reported it).
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: 4X Space Game (Tech Demo Released)

Post by Robin »

Oh great. It doesn't error anymore.
Help us help you: attach a .love.
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: 4X Space Game (Tech Demo Released)

Post by Lap »

The next great technical hurdle I have to surpass is how to best implement threading.

I've been searching for ways to make use of threads to reduce the loading times and of course threads come to mind. However, the major problem here is that almost all the resource loading is in images, which apparently has problems. I've tried out stuff like:

http://love2d.org/forums/viewtopic.php? ... ead#p18443

but nothing seems to function well when trying to thread load multiple images.
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: 4X Space Game (Tech Demo Released)

Post by appleide »

NOoooooooo. :(
Attachments
Picture 1.png
Picture 1.png (28.08 KiB) Viewed 3588 times
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: 4X Space Game (Tech Demo Released)

Post by Lap »

It was a tough decision on whether or not to use framebuffers at first. I don't want to exclude all the older laptops that should by all means be able to play a 2D turn based game. After I saw the FPS boost I got there was no turning back. 40 FPS -> 250+ FPS. Now I have framebuffers all over the place and they are just way too handy not to have.

If anyone is still interested in helping out with code or drawing sprites/icons let me know. It's coming along nicely, but there is still plenty to do.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: 4X Space Game (Tech Demo Released)

Post by BlackBulletIV »

You're using Po2 compatible framebuffers right? If so, what size? If not, then you'll definitely want to, even if the rest of the pixels aren't used.
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: 4X Space Game (Tech Demo Released)

Post by Lap »

It's actually not possible to have a framebuffer that isn't po2 compatible. Love requires it.

Even if I only need say 500 pixel width I just do

nearestPowerofTwo(500)

function nearestPowerofTwo(num)
return 2^(math.ceil(math.log(num)/math.log(2)))
end

and I'll get 512. Not all the images I use are PO2, but most are.
Last edited by Lap on Sun Jul 10, 2011 1:47 pm, edited 1 time in total.
User avatar
slime
Solid Snayke
Posts: 3161
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: 4X Space Game (Tech Demo Released)

Post by slime »

Lap wrote:It's actually not possible to have a framebuffer that isn't po2 compatible. Love requires it.
Huh? No it doesn't. I use screen-sized (non-PO2) framebuffers in my personal code all the time. All this power-of-two and framebuffer shenanigans really depends on your video card and video drivers.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests