Commit Graph

232 Commits

Author SHA1 Message Date
Glenn Maynard eb420bfe62 const 2005-10-25 03:46:28 +00:00
Glenn Maynard 8b0223350f Pull complicated computations out of per-arrow code, and run them just once per
frame.

This is a minor optimization, but it can gain a couple FPS.  More importantly,
it reduces the amount of code in the time-critical functions, which makes it
easier to profile and optimize the time-critical parts.  (Eventually, this should
probably be real class.)
2005-10-23 04:22:29 +00:00
Glenn Maynard 4410080639 Tweak mini: instead of zooming out the whole field, zoom out each individual
arrow, and push the columns together a bit.  It looks the same, except that it
doesn't cause arrows to be closer together, like increasing the scroll speed to
match.  This keeps mini from causing many more notes to be drawn.  In general,
effects should try to avoid needing to increase fDrawScale.
2005-10-22 21:54:08 +00:00
Glenn Maynard 039aea4d01 cleanup, consolidate indexing by PlayerNumber 2005-10-22 21:31:40 +00:00
Glenn Maynard 2a57f5aad8 fix editor assert 2005-10-11 21:42:06 +00:00
Glenn Maynard 7efd17ad8f fix messages never processed in ReceptorArrowRow/GhostArrowRow 2005-10-10 04:07:21 +00:00
Glenn Maynard 3b32e9d0d2 fix update done twice 2005-10-10 03:57:09 +00:00
Chris Danford b6cf3477b4 Use generic names for TapNoteScore values since they are treated genericly by the code.
Theme changes coming...
2005-10-08 00:57:40 +00:00
Glenn Maynard b76d363994 Remove ugly CopyTweening. This is too wildly incompatible with newer
XML features, where there's not necessarily any corrolation between elements
of different graphics.  This didn't work well, anyway: it'd apply the old tweening
queue to the new graphics, but they might have completely different animations.
This will cause transitions between NoteSkins to be more abrupt, but we don't
use that feature anyway.
2005-10-05 04:49:09 +00:00
Chris Danford e628f74491 do note coloring with tex coord shifting, not separate elements 2005-10-04 19:45:45 +00:00
Chris Danford c19c1e614e debugging cleanup 2005-10-02 19:21:05 +00:00
Glenn Maynard b25c8e5fcd typo 2005-09-11 03:23:53 +00:00
Glenn Maynard 7477d63f04 fix crash 2005-08-14 02:12:19 +00:00
Chris Danford 975af19cf0 fix mods position 2005-07-30 21:11:18 +00:00
Chris Danford 3263654989 draw course attacks in NoteField 2005-07-30 19:32:31 +00:00
Glenn Maynard 83bae991b9 undo; not needed and causes crashes elsewhere 2005-07-21 05:33:08 +00:00
Glenn Maynard f0e2ff35fc fix chopped-off record; remove redundant m_NoteFieldRecord.Load call 2005-07-20 03:01:58 +00:00
Glenn Maynard 0a46e5f99b use GAMESTATE->m_EditMode 2005-07-14 05:16:32 +00:00
Glenn Maynard 6badb0dd8c transitioning m_bEditing -> m_EditMode, IsEditing() 2005-07-14 05:12:56 +00:00
Chris Danford 524a3dd18d show "(empty)" for BGChanges with no attributes set so that the user can see them to delete them 2005-06-07 09:45:27 +00:00
Chris Danford b489c43a88 add color parameter to BGChanges 2005-06-05 22:21:55 +00:00
Chris Danford 539e6915ff add asserts 2005-06-05 09:45:00 +00:00
Chris Danford 4e86ffe01d add background change controls for "baked random"
Shift+B to choose to choose a different baked random movie
add bgchange menu lines for "movie in group" and "movie in group and in genre"
2005-06-05 01:27:15 +00:00
Chris Danford 3b61a74477 reduce header file dependencies 2005-06-04 21:22:50 +00:00
Chris Danford 7386647ece fix bad clamping of area rectangle caused artifacts at the bottom 2005-06-04 19:31:41 +00:00
Chris Danford 1c90c54390 fix drawing of BackgroundChange text with 2 layers 2005-06-02 04:33:53 +00:00
Chris Danford dac72665e3 move background file enumerating into BackgroundUtil.*
fix editor background change functionality
2005-05-31 01:17:37 +00:00
Chris Danford ac5a99b41f specify effect and transition in each background change 2005-05-29 01:11:49 +00:00
Chris Danford 68a82faa6a add multiple background layers 2005-05-26 09:35:57 +00:00
Chris Danford 68c6b6a126 fix FadeToFail
do FadeToFail for LIFE_TIME
2005-05-09 02:58:30 +00:00
Chris Danford 4e6f00ba9e separate explosions for HoldNoteScore 2005-04-26 05:28:32 +00:00
Chris Danford 5b9ab7244b fix GCC errors 2005-04-19 04:11:33 +00:00
Chris Danford 1f483158f7 fix edit elements drawing way off screen in boomerang causing artifacts on some hardware 2005-04-19 03:56:00 +00:00
Chris Danford 6053783a4c make EDIT_MODE less fragile by using switches
don't allow going past last beat in practice
2005-04-19 01:44:22 +00:00
Chris Danford abac6af93b store a current NoteSkin in NoteSkinManager so that NoteSkin elements can use NOTESKIN:GetPath() 2005-04-18 01:19:56 +00:00
Chris Danford 976e497de7 add EDIT_MODE_PRACTICE 2005-04-14 06:34:17 +00:00
Chris Danford 370daa9b68 fix long holds not visible in non-boomerang 2005-04-07 08:28:41 +00:00
Chris Danford 1e7d4001a8 fix long hold + boomerang artifacts: didn't draw if neither the head nor the tail were on-screen, tail bottom would be positioned above the head causing the hold to magically grow once the tail comes on screen 2005-04-07 06:41:02 +00:00
Glenn Maynard f64a93bb21 fix off-by-one causing artifacts with Cx mods during stops 2005-04-06 08:09:27 +00:00
Chris Danford 9aa003041d clip the area highlight rectangle 2005-03-30 04:27:13 +00:00
Chris Danford 7ca20486ef use sin lookup table to fix terrible performance with float and tipsy performance on some archs 2005-03-22 00:58:05 +00:00
Chris Danford 66a30e72b8 optimize: Add GetTimeSinceStartFast() that caches the time for archs where GetMicrosecondsSinceStart() is slow 2005-03-21 21:40:07 +00:00
Chris Danford 9cfa779956 remove code to play cancel sound and put the cancel sound in the transition 2005-03-20 08:23:08 +00:00
Chris Danford 66a5c26a84 don't draw BGChange text in HomeEditMode 2005-03-18 18:56:35 +00:00
Glenn Maynard 02197dab9c like Player, split NoteField loading into Load and Init, with Init having the expensive part, which we do only once 2005-03-18 04:43:59 +00:00
Glenn Maynard b6b9b11b0f don't bother unloading "unused" note skins; now we just load all the note skins we'll need in advance for a whole round 2005-03-18 04:13:19 +00:00
Glenn Maynard 3c45bca547 fix freeze duration rendering 2005-02-20 01:18:03 +00:00
Glenn Maynard d1fbf3f1f5 Only iterate over the section of a hold note that's on screen. Fixes slowness
with extremely long hold notes; now, even if a hold note has a
MAX_NOTE_ROW duration (which would be a bug), we shouldn't slow down.
2005-02-07 21:00:21 +00:00
Chris Danford 4223e09cc8 GetPathTo -> GetPath 2005-02-06 03:32:53 +00:00
Glenn Maynard b1467a84be have DrawHold take a TapNote 2005-01-25 05:45:51 +00:00