Welcome to the DCEmu Forums:: The Homebrew & Gaming Network :: forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
Social Networking Comes to DCEmu
For all our members you can now use DCEmu as your social network, click on the Profiles link on the forum navigation. You can also use it as a personal blog too.
Want a quick chat? Come join on in our IRC Chat room. Click here to use our Java chat app, or use a IRC program like mIRC and join us on the Freenode server in #dcemuuk
For those members who are interested you can join the RSS Feed Group in Your USER CP to see all our extra forums with the latest Gaming & Tech news and releases from all over the world.
I have been working for a while on getting Quake working in adhoc mode and I have managed to get an initial version working, it is not perfect, but it does work (It is a bit of a hack the way it is currently done, but I have a few things to try out to improve the network play). This was done using Peter Mackay's port as the base code and changing the video functions to use the GU to speed it up a bit to help the network tasks have more time.
I have only tested this using the 2 PSP's so I am not sure how well it will work with more than 2, if you have more than two PSP's to test with then let me know how well it works.
Cool! I don't have 2 PSPs or WiFi, so I can't test it out.
Incidentally, what changes did you make to the rendering code to make it faster?
In my work-in-progress version I'm using GU to stretch-blit a 320x200 portion of a texture to the 480x272 screen. It looks ok, and is a lot faster than rendering in 480x272.
It would maybe make sense to consolidate our work and put it in source control or something... what do you think?
Hi Pete, I really just added the screen blitting using the GU, in psp_vid.cpp (fairly much just copied the code that I use in SMSPlus to do it). I also changed the control reading function to be CtrlPeek as that does not block to read and is quicker.
I am not sure that at the moment it would be worth merging the code as it will need to be setup so that wifi only gets activated when you need it and shuts down when not required, otherwise it will lead to a drain on battery power. If I get time to sort out some things to make it a bit cleaner then I will let you know and you can decide if you want to include them or not.
Just to let everyone know, it looks like I have found a way to reduce the lag from around 1 second (for 8192 bytes) to about 0.06 seconds (in a test program), so hopefully once I integrate that into AdhocQuake it should be a LOT more responsive.
Hi Pete, I really just added the screen blitting using the GU, in psp_vid.cpp (fairly much just copied the code that I use in SMSPlus to do it).
Is the code available anywhere so I can verify that I'm not doing anything slow in my version?
Quote:
Originally Posted by cswindle
I also changed the control reading function to be CtrlPeek as that does not block to read and is quicker.
Oh, I didn't realise that CtrlRead blocks. I changed my code and indeed gained a couple of FPS. I did some searching on the PSPDev forum about sceCtrlPeekBufferPositive, and apparently sceCtrlReadBufferPositive waits for the VBlank.
Quote:
Originally Posted by cswindle
I am not sure that at the moment it would be worth merging the code as it will need to be setup so that wifi only gets activated when you need it and shuts down when not required, otherwise it will lead to a drain on battery power. If I get time to sort out some things to make it a bit cleaner then I will let you know and you can decide if you want to include them or not.
I'd be very grateful to have any kind of networking support.