Welcome to DCEmu, Dont Just be a Guest, join in the fun here - please click here to register...


Translate DCEmu


DCEmu Forums:: The Homebrew & Gaming Network ::  

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.

Go Back   DCEmu Forums:: The Homebrew & Gaming Network :: > Sony Playstation Console Forums > PSP News Forum
Tags
Connect with Facebook

Welcome to DCEmu

DCEmu Breaking News
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.

Reply
Add this thread to:  Submit to Digg Digg  Submit to Reddit Reddit  Submit to Del.icio.us Del.icio.us  Submit to Yahoo! This Yahoo This  Submit to Technorati Technorati 
 
Thread Tools Search this Thread Display Modes
Old January 28th, 2006, 00:49   #1
cswindle
PSP Coder
 
Join Date: Nov 2005

Posts: 23
Thumbs up Multiplayer Adhoc Quake

(News by C Swindle)

Hi All

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.

Enjoy

Chris

(Download via comments and please leave feedback)
Attached Files
File Type: zip AdhocQuake.zip (799.3 KB, 175 views)
cswindle is offline   Reply With Quote

Visit Our Sponsor

Old January 28th, 2006, 01:01   #2
PSPdemon
Senior Staff Artist
 
PSPdemon's Avatar
 
Join Date: Oct 2005

Location: Florida
Posts: 927
Default

this is great news!!!!!!!

i have friends who have more than one psp and ill get them to try it out as well.... ill tell you if it works with more than 2 psp's

ill download it as soon as i can we i get on my computer

Your doing great!!!! Keep up the good work...

Thanks for Everything,
PSPdemon
__________________
404 Error: This signature is missing!
PSPdemon is offline   Reply With Quote
Old January 28th, 2006, 01:03   #3
wraggster
DCEmu Webmaster
 
wraggster's Avatar
 
Join Date: Apr 2003

Location: Nottingham, England
Posts: 74,805
Default

Wow awesome news for the homebrew scene
wraggster is offline   Reply With Quote
Old January 28th, 2006, 01:34   #4
PeterM
PSP Coder
 
PeterM's Avatar
 
Join Date: Jan 2006

Location: Edinburgh, UK
Posts: 178
Default

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?

Pete
__________________
My development blog:
http://aaiiee.wordpress.com/


If you enjoy my homebrew work, please consider donating a few bucks.
PeterM is offline   Reply With Quote
Old January 28th, 2006, 01:48   #5
cswindle
PSP Coder
 
Join Date: Nov 2005

Posts: 23
Default

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.


Chris
cswindle is offline   Reply With Quote
Old January 28th, 2006, 02:02   #6
Kaiser
Now with Blast Processing!
 
Kaiser's Avatar
 
Join Date: Jun 2005

Location: CANADA
Posts: 2,855
Default

Nice work. Loading it on my PSP as I type this. I'll have to call my pals to test it out.
Kaiser is offline   Reply With Quote
Old January 28th, 2006, 02:35   #7
Hiei311
DCEmu Rookie
 
Hiei311's Avatar
 
Join Date: Jan 2006

Posts: 124
Default

Quote:
Originally Posted by PeterM
Cool! I don't have 2 PSPs or WiFi, so I can't test it out.
wifi is internet AdHoc is close together like gba but no cords
__________________
PS3 Original 60gb
Aiming For A New PSP

Mac Os Tiger
Apple Iphone Jail broken Unlocked 3.1.2

PSN Crimson_Raven25
Hiei311 is offline   Reply With Quote
Old January 28th, 2006, 02:52   #8
Madonion
DCEmu Newbie
 
Join Date: Jan 2006

Posts: 53
Default

I cant get it to work.
1.5v psp here.

i Placed Quake & Quake% in psp/game folder. Then got the shareware version and put the idf in the psp/game Quake folder.
Screen stays dark.

(EDIT) Got it working. all i did was switch on the wifi then it didnt show a black screen when loading.
Madonion is offline   Reply With Quote
Old January 28th, 2006, 11:15   #9
cswindle
PSP Coder
 
Join Date: Nov 2005

Posts: 23
Default

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.


Chris
cswindle is offline   Reply With Quote
Old January 28th, 2006, 11:34   #10
PeterM
PSP Coder
 
PeterM's Avatar
 
Join Date: Jan 2006

Location: Edinburgh, UK
Posts: 178
Default

Quote:
Originally Posted by cswindle
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.

Pete
__________________
My development blog:
http://aaiiee.wordpress.com/


If you enjoy my homebrew work, please consider donating a few bucks.
PeterM is offline   Reply With Quote
Reply
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT +1. The time now is 20:42.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vB.Sponsors


eXTReMe Tracker

·DCEmu.com Next Gen Gaming ·Console Hacking.Com