Main > Software Forum
LED control from Mame--in over my head again?
Howard_Casto:
Yeah... strictly speaking a UDP protocol would be the fastest, most efficient method. I'll probably implement that anyway, but the webpage thing is more universal as apps that actually do something useful on the DS, PSP, or random portable device are pretty slim.
I did some more testing on my mom's netbook which, while brand new is a slow pos with even slower download rates in wireless mode. If I set the refresh rate to once every half second and the image resolution to 320x240, the frame rate is barely acceptable on games like seawolf. Faster games like turbo do a tad bit worse and super fast games like skydiver kill the poor thing.
Luckily this was just a test, there are tons of things I can optimize. First off I'm saving the images to bitmaps cause they are the fastest to save, but they are also the largest files to transfer. I could cut the download speeds in half just by saving as jpg. Of course there is a fine line there as it takes longer to save a compressed file as well.
Also the javascript itself seems to be the weak link. It's a simple script that simply reloads the image constantly. It would be better to have an intelligent script that checks crc or something but I'm not that talented a java programmer. :(
I can muddle through c#.... I've studied it a little in my time away, but yeah, I don't know if I'm competant enough with it to take over.
What kind of games are you working on?
headkaze:
--- Quote from: Howard_Casto on March 16, 2010, 11:40:44 pm ---What kind of games are you working on?
--- End quote ---
My website is in my sig.. we did 3 free games for the DS and now we're making our first indy game for iPhone which is a platformer. This is our first original game aswell all of the other were remakes (albeit written from scratch). Two in arm asm too :o
Howard_Casto:
Eeek... assembly is scary. Yeah I noticed the site after I posted, you need a bigger sig. ;)
The ones released look pretty cool. I'll have to give them a go once I get some time to dl.
1UP:
Cool stuff Howard. I was also looking into a free program called ZoneScreen, which is kind of a VNC program with the addition that you can extend the desktop onto another network device--including a pocket pc--not just mirror it. So you would be able to for example, drag a window off your desktop onto the PDA. The other one I'd been trying was SideWindow, which apparently needs a very old version of XP to run, and I don't feel like rolling back any of my machines to SP1 for a test...also it was not free.
More stuff to play with this week while I wait for your next release with all the new toys. :)
(Still hoping for a brainstorm on the T2 stuff though...)
Howard_Casto:
I've got good news, but I need help......
I implemented a new class file for my gdi handling that works much better and I'm now saving the display file as a jpg file with medium compression. That seems to have done the trick speed-wise. I can run a 640x480 display file off the net remotely. BUT, there is still one issue. Every now and again the javascript tries to load the image as it's being written and of course it errors. The webpage keeps running but you get that classic red x for a second. The script needs to be modified so that it uses the last image if there is an error, which will prevent this flickering. Here's my script:
-----------------------------------------------------------
<html>
<body>
<IMG src="test.jpg" border="0" name="refresh">
<script language="JavaScript" type="text/javascript">
<!--
var t = .1 // interval in seconds
image = "test.jpg" //name of the image
function Start() {
tmp = new Date();
tmp = "?" tmp.getTime()
document.images["refresh"].src = image tmp
setTimeout("Start()", t*1000)
}
Start();
// -->
</SCRIPT>
</body>
</html>
-------------------------------------------------------------
Any takers on putting some error handling in there?
Except for real simple stuff, like above I'm lost with javascript so I don't really know how to fix this issue.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version