tag:blogger.com,1999:blog-6395743605854105890.post4854824580036287712..comments2019-01-30T08:46:42.876-08:00Comments on COIN DOOR INTERLOCK: Ways to speed up yer Python codeRodneyliveshttp://www.blogger.com/profile/03476187929555342435noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6395743605854105890.post-91219135699715174472012-04-25T01:22:12.309-07:002012-04-25T01:22:12.309-07:00I'm no python maven, but I know python is usua...I'm no python maven, but I know python is usually fast enough, if you cut the right corners. It's the implementation of the algorithms that make all the difference. Also, calling a c-function from python is not that hard, and there's plenty of good examples of how to do it. Also, are you totally sure where most of the time is spent? I've followed your blog from the beginning and I know that iterating over a lot of cells can be cpu intensive, but like you've described I'm sure there's a lot of ways to optimize it. Maybe it's time to put the code up on github? :-)<br /><br />Anyway, thanks for still updating the blog, it's always interesting. As is Roguelike Radio!Claes Mogrenhttps://www.blogger.com/profile/04546075843043674835noreply@blogger.comtag:blogger.com,1999:blog-6395743605854105890.post-61186139926009353202012-04-24T21:17:21.878-07:002012-04-24T21:17:21.878-07:00When I abandoned Psyco, the framerate went down fr...When I abandoned Psyco, the framerate went down from around 30-40 fps on average to 18-22. But what I was hoping to do was switch the game to a more turn-based system, at the cost of calculating the whole game world, which would allow for liquid loops and things like that. I could put up with fluid flowing somewhat slower for that, but not that slow.<br /><br />What is more is, my laptop isn't top-of-the-line, but it's single core. Python doesn't take good advantage of multi-core systems in its threading, so I'm having to face the possibility that even people on good gaming rigs might not get all that much better performance than I do on my low-end laptop.Rodneyliveshttps://www.blogger.com/profile/03476187929555342435noreply@blogger.comtag:blogger.com,1999:blog-6395743605854105890.post-20546757854975635892012-04-24T21:05:58.437-07:002012-04-24T21:05:58.437-07:00Is performance really that huge a deal?
Like, are ...Is performance really that huge a deal?<br />Like, are common players going to have a problem?<br />I think you said a while ago that your rig isn't top notch, so could this just be issue for you?Whittackerhttps://www.blogger.com/profile/10014585783503977505noreply@blogger.com